0
我看到UITableViewDelegate
的tableView:heightForRowAtIndexPath:
的調用,其中indexPath.row
大於先前從UITableViewDataSource
s tableView:numberOfRowsInSection:
對同一節返回的值。UITableViewDelegate的tableView:heightForRowAtIndexPath:爲不存在的單元格調用?
例如,如果部分0中的行數爲1,則可以使用{ section = 0, row = 1}
調用tableView:heightForRowAtIndexPath:
。
這是一個功能或錯誤(在我的代碼或其他地方)?