开发者

getting error at pushviewcontroller in didSelectRowatIndexPath

开发者 https://www.devze.com 2023-03-11 17:46 出处:网络
I am using continously UITableViewController type classes o开发者_StackOverflow社区n didSelecRowAt IndexPath I need to display ViewController but it is giving following error:

I am using continously UITableViewController type classes o开发者_StackOverflow社区n didSelecRowAt IndexPath I need to display ViewController but it is giving following error:

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "videoView" nib but didn't get a UITableView.'

the class declaration I am using as

@interface VideoCategory : UITableViewController

and

@interface videoView : UIViewController

Please suggest.


In Interface Builder you've got to set the File Owner of your nib file to your VideoCategory class. Then link the outlet tableView to a tableView in the nib file.


Either you dont have declared a tableView outlet in your VideoCategory header file or have not connected this outlet to tableView in your nib file.


Try this:

delete the app on simulator. clean the project. build and restart simulator.

0

精彩评论

暂无评论...
验证码 换一张
取 消