Tôi cố gắng để di chuyển tableview tôi vào ô thứ 2:UITableView không di chuyển đến ô
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0]
atScrollPosition:UITableViewScrollPositionNone
animated:NO];
tôi nhận được lỗi:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:]: section (1) beyond bounds (0).
'
tableview của tôi có 30 tế bào đang xuất hiện không có phần nào.
Hiển thị mã của bạn cho 'numberOfSectionsInTableView:' –