UITableViewController crash on iOS6 simulator

I am working on a project and just upgrading to Xcode 4.5 and I am using iOS 6 simulator. Now I get the following error:

The application terminated due to the uncaught exception 'NSInternalInconsistencyException', reason: '- [UITableViewController loadView] loaded the FeedController tip but did not receive a UITableView.

This is strange because I do not have any NIB file for this controller, as this is just a table:

@interface FeedController : UITableViewController <EGORefreshTableHeaderDelegate> - (void)reloadTableViewDataSource; - (void)doneLoadingTableViewData; @end 

This controller is loaded from the tab controller, it selects the FeedController without problems, but when you click the tab button to show the feed, it crashes with this error. It worked well on simulators and ios4 and ios5 devices.

The Clean and Build project did not help.

Anyone with the same problem?

+6
source share
2 answers

Does the answer given here help? nib but did not get a UITableView

If not, is your UITabBarController created from an NIB that somehow indicates a non- UITableView view for the FeedController tab?

0
source

You need to add the following:

  - (id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { // Custom initialization } return self; } 
0
source

Source: https://habr.com/ru/post/925965/


All Articles