How to add a UITableView section using Interface Builder

I have a storyboard with a subclass of UITableViewController. It looks like this:

UITableView sections in interface builder

I inherited this project, so I myself did not make a section inside the table. I can’t find a way to add a section of the table (a blue square in the image) other than copying / pasting an existing and subsequent modification.

The object library does not have this component.

I know that I can manipulate sections in the code, but my question is, can this section (blue square in the image) be added only with IB?

Thanks!

+5
source share
2 answers

Just select the UITableView in the outline of the document and enlarge the sections as follows:

Storyboard

+10
source

For static tables, you can click on the hierarchy of tableview views, and then from the property inspector you can specify the number of partitions for tableview. As it shown on the picture.

enter image description here

+2
source

Source: https://habr.com/ru/post/1235874/


All Articles