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 protected]



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to