-2

我正在使用[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:k] withRowAnimation:UITableViewRowAnimationNone];,我检查了我得到了一个有效的 k 值,但我仍然得到了-[NSIndexSet initWithIndexesInRange:]: Range {9223372036854775807, 1} exceeds maximum index value of NSNotFound - 1

4

1 回答 1

-1

试试下面的代码它可能对你有帮助

NSRange range = NSMakeRange(0, 1);
NSIndexSet *section = [NSIndexSet indexSetWithIndexesInRange:range];                                     
[self.tableView reloadSections:section withRowAnimation:UITableViewRowAnimationNone];
于 2016-07-11T05:15:53.320 回答