nib but didn't get a UITableView

后端 未结 13 1657
误落风尘
误落风尘 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条回答
  • 2020-11-30 06:10

    If you have a NIB for the UITableViewController subclass then its view outlet must be hooked up to a UITableView.

    You're right to delete MainListViewController.xib and do it all in code, but the reason it didn't work for you is because the old XIB will not be deleted when you build & run. So, delete the app from the simulator and try again. It should work then.

    0 讨论(0)
提交回复
热议问题