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.
加载中,请稍侯......
精彩评论