This may seem odd, but in my case I really need a UITableViewController with a table view. I do not use xib files, so I build the whole interface using code.
I was getting the same error.
I did this to override the loadView method this way and it will work!
- (void)loadView { [super loadView]; }
What is now a stranger, if I comment on the loadView method, I get another error:
this class is not a key value compatible with the encoding for the key settings. View
and I do not use the settingsView property, and he commented.
Now I'm embarrassed! Although it works with overriding loadView.
Edit
I uninstalled the application from my iPhone and then ran it again using loadView and now it works ...
source share