noRema
noRema

Reputation: 559

Within a tableView is it possible to have both grouped and plain section

I was wondering if it was possible within a plain style tableView to have one of the sections with a grouped style?

Thanks Stewart

Upvotes: 0

Views: 149

Answers (3)

Dan F
Dan F

Reputation: 17732

The style is applied to the entire UITableView. You could theoretically get around this by having the first cell in a normal style table be another table view that has the grouped style, and then the remainder of the cells are as normal. Or the first cells are normal, and the last cell is the grouped style tableview, depending on if you wanted the grouped style first or not

Upvotes: 1

pawel.kalisz
pawel.kalisz

Reputation: 1245

No, it is not, because both of them are styles that apply to whole UITableView instance. What you can do is for example split your table into sections and use custom cells. It will take you some time, but it should work.

Upvotes: 1

Sean
Sean

Reputation: 1045

No, the better solution would be to have two UITableViews. I'm guessing that the data in these tables are different anyway, so this would be much more ideal approach.

Upvotes: 3

Related Questions