Search code examples
iosuitableviewreuseidentifier

iOS - UITableView not displaying cells


I have the following interface set up in storyboard:

enter image description here

The controller is a custom controller that extends from UITableViewController. When I run my app this is what I get:

enter image description here

I thought it might have something to do with the Reuse Identifiers so I changed them to something unique for each of the cells, and modified the code accordingly, but still nothing shows up.


Solution

  • If you are using static cells in the storyboard, you must remove all table view data source methods (number of rows in section, sections, cell for row at index path...) from your table view controller, otherwise the static cells are overridden.