How can I set a UITableView to grouped style

cocoa-touch, ios, objective-c, uitableview

Solution

If i understand what you mean, you have to initialize your controller with that style. Something like:

myTVContoller = [[UITableViewController alloc] initWithStyle:UITableViewStyleGrouped];

Problem

I have a `UITableViewController` subclass with sections. The sections are showing with the default style (no rounded corners). How can I set the TableView style to grouped in the code? I'm not using Interface Builder for this, so I need something like ``` [self.tableView setGroupedStyle] ``` I searched on Stack Overflow, but couldn't come up with an answer.

Original source