我試圖滾動我的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