1

When I run my iOS simulator, I get this error:

UITableViewController loadView loaded the I1u-ML-mqb-view-QFc-WC-CU4 nib but didn't get a UITableView.'

My code:

@interface IF2000 : UITableViewController
@property (weak, nonatomic) IBOutlet UILabel *EnterCategory;

@property (weak, nonatomic) IBOutlet UITextField *Tfield;

- (IBAction)Submit:(id)sender;

@property (weak, nonatomic) IBOutlet UITableViewCell *EmptyCell;

@end

This is the only code that I have typed so far. If anyone knows how to solve this problem, I would appreciate the help. If I could get a general answer on how to solve this problem, that would be good as well.

lootsch
  • 1,867
  • 13
  • 21
user3356067
  • 19
  • 1
  • 2
  • What is your question? – Woodstock Mar 22 '14 at 23:53
  • possible duplicate of [loaded the "ChatView" nib but didn't get a UITableView.'](http://stackoverflow.com/questions/5772777/loaded-the-chatview-nib-but-didnt-get-a-uitableview) – jscs Mar 23 '14 at 00:18
  • I had a similar problem trying to use UITableViewController and figured it out. I posted an answer over here http://stackoverflow.com/questions/11221802/nib-but-didnt-get-a-uitableview I hope it helps you and please vote if it does. Thanks! – uplearned.com Sep 04 '14 at 04:20

1 Answers1

7

Your nib file contains a view other than a table view as the first object. When you try to load a UITableViewController with a nib, you must make sure to have a table view as the first object.

Léo Natan
  • 56,823
  • 9
  • 150
  • 195