Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grouped TableView

enter image description here

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 ?

like image 982
Viktor Apoyan Avatar asked Jan 21 '23 06:01

Viktor Apoyan


2 Answers

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.

like image 133
PengOne Avatar answered Jan 23 '23 03:01

PengOne


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.

like image 29
Andy Bowskill Avatar answered Jan 23 '23 03:01

Andy Bowskill