开发者

How to set the RootViewController to a Grouped Table in SplitViewController

开发者 https://www.devze.com 2023-01-02 21:33 出处:网络
Instead of the plain type of table I wanta Grouped one in the RootView开发者_如何学PythonController.Anyone knows how to do this? Add the following to viewDidLoad of RootViewController.m

Instead of the plain type of table I want a Grouped one in the RootView开发者_如何学PythonController.Anyone knows how to do this?


Add the following to viewDidLoad of RootViewController.m

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

this will change the tableview style.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消