Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一个在 RootViewController 中的分组表,而不是普通类型的表。有人知道该怎么做吗?
将以下内容添加到RootViewController.m的viewDidLoad
[self.tableView initWithFrame:self.tableView.frame style:UITableViewStyleGrouped];
这将改变 tableview 样式。
首先,您为 RootViewController 创建 xib 设计,并在属性检查器中将 tableview 样式更改为分组。它工作得很好