I have been using customized UITableViewController
with UITableViewStyleGrouped
and custom group header, group footer and cell background. With iOS 7 the cell width has changed to full width of the UITableView
. Is it possible to modify the group/cell width and still use UITableViewController
?
Asked
Active
Viewed 8,600 times
2

BojanG
- 1,872
- 1
- 15
- 23
-
See http://stackoverflow.com/questions/2539021/how-to-set-the-width-of-a-cell-in-a-uitableview-in-grouped-style – bengoesboom Sep 30 '13 at 19:37
2 Answers
3
I ran into this same issue. My (grouped style)tableView used to have it's cells inset about 10 px on the left and right side. With iOS7 the content in grouped table views is stretched to the edges of the tableview.
My fix was to adjust the width of the table view which would in turn adjust the width of the cells that it displays.

Rich86man
- 6,507
- 2
- 26
- 27
-
This approach will have an undesired impact if you have any header/footer views on the tableView – bengoesboom Sep 30 '13 at 15:31
1
This answer has a good solution for adjusting UITableViewCell custom width. Use this in conjunction with a check for if the device is using iOS7, and you'll have a good solution.
How to set the width of a cell in a UITableView in grouped style

Community
- 1
- 1

Shaun Budhram
- 3,690
- 4
- 30
- 41