Grouped TableView

自闭症网瘾萝莉.ら 提交于 2019-12-06 07:12:38

问题


I want to create a table view which looks like this image! Who can tell me an example or say how can I do this ?


回答1:


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.




回答2:


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.




回答3:


Put this in your init method in your UITableView class

    [super initWithStyle:UITableViewStyleGrouped];



回答4:


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



来源:https://stackoverflow.com/questions/5299539/grouped-tableview

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