ios - collectionView刷新局部单元格,程序崩溃,
大家讲道理
大家讲道理 2017-04-17 17:45:32
0
3
653

需求是得到一个对象刷新到collectionView上

崩溃信息

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
伊谢尔伦

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

PHPzhong

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template