I\'ve created a prototype cell with identifier \"mainViewTableCell\" in storyboard file and connected the main table view with a custom controller class named \"NTTableViewC
After reading @Firoze's answer I fixed my problem that had been haunting me for days.. and found another solution. I know the question has already been answered but this may help someone out.
In my case I had done some refactoring (extracted a new TableViewController), and afterwards I was getting nil cells returned from dequeueReusableCellWithIdentifier.
The fix for me was to do this instead of calling alloc/init on my ViewController in didSelectRowAtIndexPath:
UIStoryboard* sb = [UIStoryboard storyboardWithName:@"MainStoryboard"
bundle:nil];
MyTableViewController* controller = [sb instantiateViewControllerWithIdentifier:
@"MyTableViewController"];
(Then I call [self.navigationController pushViewController:controller animated:YES]; - not the cleanest way perhaps but it works)