【发布时间】:2011-02-24 00:39:33
【问题描述】:
我正在尝试将我的表格视图滚动到第二个单元格:
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0]
atScrollPosition:UITableViewScrollPositionNone
animated:NO];
我得到错误:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:]: section (1) beyond bounds (0).
'
我的 tableview 有 30 个单元格,没有任何部分。
【问题讨论】:
-
显示
numberOfSectionsInTableView:的代码
标签: iphone objective-c cocoa-touch xcode uitableview