<分区>
我通过崩溃报告发现了这一点:
*** -[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 8]
CoreFoundation-[__NSArrayM removeObjectAtIndex:]
这是负责的代码:
[self someMethodwithCallback:^(NSMutableArray *stickerArray)
{
_tableViewController.tableView beginUpdates];
_layersArray = stickerArray;
NSArray *reversed = [[_layersArray reverseObjectEnumerator] allObjects];
_layersArray = [reversed mutableCopy];
[_tableViewController.tableView insertRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationAutomatic];
[_tableViewController.tableView endUpdates];
[_tableViewController.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:YES scrollPosition:UITableViewScrollPositionNone];
[_delegate stickerSelectedAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
}
这个庞大的索引将如何以及在哪里发生?