简体   繁体   中英

UICollectionView leaves blank cells while scrolling

I have built a uicollectionview that shows the thumbnails of images. Every thing works fine until.

I delete a photo from the end of the collection view and scroll to top.

So the problem is when i scroll from bottom back to top it leaves these blank cells. But if i delete from top of collection view and scroll to bottom then it doesnt leave these blank cells.

I dont know what is causing it. I am very sure that the UICollectionViewDataSource are updated properly.

Please help me with this.

在此处输入图片说明

在此处输入图片说明

To answer my own question. Its a bug. Reducing the cell size fixed the problem. I just reduced the cell width and the problem is fixed.

该问题具有有关可能发生的情况的更多详细信息,以及指向openradar错误报告的链接。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM