• 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
Releasing resources when cells are returned to the queue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Releasing resources when cells are returned to the queue?


  • Subject: Releasing resources when cells are returned to the queue?
  • From: Rick Mann <email@hidden>
  • Date: Tue, 09 Jun 2015 14:23:02 -0700

I'd like to release resources in my collection view cells when they are returned to the reuse queue. But I can't see a way to do this. There is a call on the cell when they are popped from the queue and about to be reused, but none when they're put on the queue in the first place.

Our examination has revealed that while we will have 11 cells visible on screen, there will be 29 elsewhere.

We're running into memory problems, and these cells continue to hang on to stuff that I'd like to release when the memory warning happens. Unfortunately, there's no easy way to get at already-instantiated cells that are NOT on screen (as far as I can tell).

Any ideas? Thanks!

--
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: Releasing resources when cells are returned to the queue?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Strange Warning Message from the Analyzer?
  • Next by Date: Re: Releasing resources when cells are returned to the queue?
  • Previous by thread: Re: Strange Warning Message from the Analyzer?
  • Next by thread: Re: Releasing resources when cells are returned to the queue?
  • Index(es):
    • Date
    • Thread