Reputation: 19
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.
Upvotes: 1
Views: 5278
Reputation: 57060
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.
Upvotes: 7