• 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
UICollectionViewCells flashing on reload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: UICollectionViewCells flashing on reload
      • From: Rick Mann <email@hidden>
  • Prev by Date: Re: NSSplitViewController and loading of NSSplitViewItems
  • Next by Date: Enable to edit rounded corners / borders in Storyboard
  • Previous by thread: Re: NSSplitViewController and loading of NSSplitViewItems
  • Next by thread: Re: UICollectionViewCells flashing on reload
  • Index(es):
    • Date
    • Thread