IOS - UITableView does not display cells

I have the following interface configured in the storyboard:

enter image description here

A controller is a custom controller that exits the UITableViewController. When I run my application, this is what I get:

enter image description here

I thought this might have something to do with reuse identifiers, so I changed them to something unique for each of the cells and changed the code accordingly, but so far nothing has been displayed.

+4
source share
2 answers

If you use static cells in the storyboard, you must remove all the table view data source methods (the number of rows in the section, sections, cell for the row along the index path ...) from your otherwise static cells will be overridden.

+30
source

Also make sure you have a positive cell height. I set the cell height to zero and wondered why the cell traits are not displayed.

0
source

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


All Articles