UICollectionViewCells flashing on reload
UICollectionViewCells flashing on reload
- Subject: UICollectionViewCells flashing on reload
- From: Rick Mann <email@hidden>
- Date: Tue, 08 Mar 2016 17:31:52 -0800
I have a UICollectionView with cells that have an image and some UILabels.
The user can sort the list. When the sort button is tapped, I sort the array, then call self.collectionView?.reloadData().
Everything reloads fine, but I see some of the text labels flash the content of the previous data before updating to the correct value. That is, it seems like the cell is reused in the new location, but the rendered UILabel showed the old content, then update to show the new. I'm only calling reloadData() once.
I set the data for each cell in collectionView(collectionView:cellForItemAtIndexPath:). Should I set it instead in willDisplayCell?
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden