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.
当我在 iOS6 上启动我的应用程序时,UITableview 的显示是我想要的,这与邮件应用程序表视图相同,但是当我在 iOS5 模拟器上启动它时,表视图对应于设置应用程序之一。如何获取两个 iOS 版本的邮件应用程序表格视图?
你设置的表视图属性“style”有2个:UITableViewStylePlain、UITableViewStyleGrouped。plain 是白色行的常规行,分组是您在设置应用程序中看到的行。
tableView.style = UITableViewStylePlain;
您也可以在 IB/StoryBoard 中设置它,方法是单击表格视图,然后右键单击属性检查器并查找选项样式。