开发者

getting error at pushviewcontroller in didSelectRowatIndexPath

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜