Grouped TableView

瘦欲@ 提交于 2019-12-04 11:25:52

This is a good tutorial on customising a grouped UITableView, although it does assume that you are proficient with an image editor to create the various custom images.

Create a UITableView and set the style to UITableViewStyleGrouped (you can do this programmatically or in the IB).

Then you want 2 sections, the first has 3 rows and the second has 1 row.

You should probably just look in the documentation for UITableView and check out the same code there to get started, but this is the basic format.

Put this in your init method in your UITableView class

    [super initWithStyle:UITableViewStyleGrouped];

I have some something similar using grouped static uitableview for creating setting page take a look here Xcode 6 Tutorial Grouped UITableView using Swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!