• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UICollectionViewCells flashing on reload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UICollectionViewCells flashing on reload


  • Subject: Re: UICollectionViewCells flashing on reload
  • From: Rick Mann <email@hidden>
  • Date: Tue, 08 Mar 2016 17:41:02 -0800

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

> On Mar 8, 2016, at 17:31 , Rick Mann <email@hidden> 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
> 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


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


References: 
 >UICollectionViewCells flashing on reload (From: Rick Mann <email@hidden>)

  • Prev by Date: Enable to edit rounded corners / borders in Storyboard
  • Next by Date: Installing MDM profile via Safari View Controller
  • Previous by thread: UICollectionViewCells flashing on reload
  • Next by thread: Enable to edit rounded corners / borders in Storyboard
  • Index(es):
    • Date
    • Thread