【发布时间】:2012-10-17 23:20:54
【问题描述】:
我使用情节提要创建了应用程序。我的应用有一个表格、一些按钮和标签。
当我尝试运行我的应用模拟器时会产生错误:Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x719de00'
UIViewController tableView:numberOfRowsInSection: 表示我不能将“numberOfRowsInSection”与“UIViewController”一起使用?
我尝试改用“UITableViewController”,但使用此控制器时,我无法在正确的位置找到适合我的按钮和标签。
我做错了什么?
谢谢。
【问题讨论】:
-
好吧,试试吧。坚持下去。
标签: objective-c xcode uiviewcontroller ios-simulator uitableview