Uitableview 如何在SplitViewController中将RootViewController设置为分组表

Uitableview 如何在SplitViewController中将RootViewController设置为分组表,uitableview,ipad,uisplitviewcontroller,Uitableview,Ipad,Uisplitviewcontroller,我希望在RootViewController中有一个分组的表,而不是普通类型的表。有人知道怎么做吗 首先为RootViewController创建xib设计,并在属性检查器中将tableview样式更改为grouped。其工作良好将以下内容添加到RootViewController.m的viewDidLoad [self.tableView initWithFrame:self.tableView.frame style:UITableViewStyleGrouped]; 这将更改tablev

我希望在RootViewController中有一个分组的表,而不是普通类型的表。有人知道怎么做吗

首先为RootViewController创建xib设计,并在属性检查器中将tableview样式更改为grouped。其工作良好

将以下内容添加到RootViewController.m的viewDidLoad

[self.tableView initWithFrame:self.tableView.frame style:UITableViewStyleGrouped];
这将更改tableview样式