我试图滚动我的tableview到第二小区:的UITableView不会滚动到细胞
[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'的代码:' – 2010-06-01 20:07:07