开发者

UITableView Grouping Cells

I looked through apple documentation and have not seen how to group cells. Is there a de开发者_运维技巧legate method for that or do you set which group to put cells in in the cellForRow method?


UITableView has sections and rows. A section may contain any number of rows. I believe this is what you're after.

UITableViewStylePlain and UITableViewStyleGrouped are the two style choices, but either can be used no matter the number of sections or rows within each section.


Did you mean sections ?

If you

return section = 2 // it will create two groups (or) two sections. 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜