4

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.

8vius
  • 5,786
  • 14
  • 74
  • 136
  • 1
    Provide code of your UITableViewController, it's impossible to help you without it – Vitaly S. Mar 07 '12 at 22:31
  • 1
    Without some code it is quite hard to tell, whats going on. What does you `cellForRowAtIndexPath` look like? This is where the cells are being generated. Or are they static cells? Everythings correctly connected as `IBOutlet` - you see, too many questions open. – Sebastian Wramba Mar 07 '12 at 22:33

2 Answers2

30

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.

jrturton
  • 118,105
  • 32
  • 252
  • 268
0

Also make sure you have positive cell height. I had set the cell height to be zero and was wondering why the heck the cells are not showing.