Your picture has not been requested yet, so I left. You can first determine whether the image exists or is an array? If it is empty, continue execution
After you add result object, it is at the last position of the array and is not the position you want to replace, and the index is greater than the number of cells, so it crashes. Just use replaceObjectAtIndex: withObject: and it will be fine.
Your picture has not been requested yet, so I left. You can first determine whether the image exists or is an array? If it is empty, continue execution
There is a problem with indexPath. Please output the NSLOG first and try again after adjusting the NSIndexpath
After you add result object, it is at the last position of the array and is not the position you want to replace, and the index is greater than the number of cells, so it crashes. Just use replaceObjectAtIndex: withObject: and it will be fine.