Jedi Master Spooky
Jedi Master Spooky

Reputation: 5809

How to set the RootViewController to a Grouped Table in SplitViewController

Instead of the plain type of table I want a Grouped one in the RootViewController.Anyone knows how to do this?

Upvotes: 2

Views: 1790

Answers (2)

palaniraja
palaniraja

Reputation: 10492

Add the following to viewDidLoad of RootViewController.m

[self.tableView initWithFrame:self.tableView.frame style:UITableViewStyleGrouped];

this will change the tableview style.

Upvotes: 8

dragon
dragon

Reputation: 317

First You create xib design for RootViewController and in attributes inspector change tableview style to grouped .Its work well

Upvotes: 2

Related Questions