nib but didn't get a UITableView

后端 未结 13 1681
误落风尘
误落风尘 2020-11-30 05:26

My application works for iOS 5.1 but for iOS 6 simulator I get the following error.

Terminating app due to uncaught exception \'NSInternalInconsist

13条回答
  •  旧时难觅i
    2020-11-30 05:47

    There is several reason why this may occur.

    1. You may have not have added UITableViewDelegate & UITableViewDataSource to your .h

      @interface TableController : UIViewController {

    2. You may have not connected your declared outlets to the components in the Storyboard/Nib

    3. You maybe calling a UIViewController instead of a UITableView or vide verser in your .h

    @interface TableController : UIViewController

    or

     @interface TableController : UITableViewController 
    

提交回复
热议问题