I have to tableview designs for ios7/6
- in ios6
I need to implement a tableview grouped style and in ios7
I need a plain one. So In storyboards I change the style to plain and in viewDidLoad of the subclass of UITableViewController
I have something like this:
if (!IS_OS_7_OR_LATER) {
self = [[UITableViewController alloc] initWithStyle:UITableViewStyleGrouped];
}
But it doesn't work. I tried to use initWithCoder
method but can't get the good result. Any help?