Augh, nevermind. Buried deep inside there was a dispatch_async() call.

> On Mar 8, 2016, at 17:31 , Rick Mann <rm...@latencyzero.com> wrote:
> 
> 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
> rm...@latencyzero.com
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


-- 
Rick Mann
rm...@latencyzero.com



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to