Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 380
8vius Avatar asked Nov 27 '22 09:11

8vius


1 Answers

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.

like image 198
jrturton Avatar answered Dec 29 '22 04:12

jrturton