【发布时间】:2011-09-09 14:18:48
【问题描述】:
我收到以下错误,但我似乎无法弄清楚发生了什么。请帮帮我。
由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[UIViewController tableView:numberOfRowsInSection:]:无法识别的选择器发送到实例 0x57405a0”
【问题讨论】:
-
您在未实现协议的 UIViewController 上调用 UITableViewControllerDelegate 方法 (numberOfRowsInSection:)。这就是我们可以从您提供的内容中告诉您的全部内容。我们需要看看你如何填充你的 UITabBarController。
-
你想让我展示什么?抱歉,我是 Objective-C 的新手。
-
你从 numberOfRowsInSection 方法返回什么?
-
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return [array count]; }
标签: iphone xcode uitabbarcontroller