• 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
Can I somehow encourage the deallocation of a dismissed view controller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I somehow encourage the deallocation of a dismissed view controller?


  • Subject: Can I somehow encourage the deallocation of a dismissed view controller?
  • From: G S <email@hidden>
  • Date: Wed, 08 Feb 2012 16:23:38 -0800

Hi all.

Our app is crashing on the deallocation of a custom control, which resides
on a view that's pushed onto the navigation controller's stack.

The problem is that this view is almost never deallocated, even long after
the user dismisses it with the Back button.  It's not a leak, so I guess
the OS just keeps it around for future use.  However, it is deallocated at
unpredictable times, and crashes every time.

Does anyone know why these things linger so long after being dismissed?  I
can't just deallocate it, because that isn't safe and not a valid test
anyway.

Do modally presented views get deallocated more quickly after being
dismissed?  I could try adding a "done" button to the view temporarily so I
can invoke it that modally and dismiss it.

Meanwhile I guess I'll just try allocating and releasing one right away,
pending any suggestions from you all.

Thanks!

Gavin
_______________________________________________

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: Can I somehow encourage the deallocation of a dismissed view controller?
      • From: Conrad Shultz <email@hidden>
  • Prev by Date: Re: drawing 1 bit images, and image resolution
  • Next by Date: Re: Can I somehow encourage the deallocation of a dismissed view controller?
  • Previous by thread: Re: drawing 1 bit images, and image resolution
  • Next by thread: Re: Can I somehow encourage the deallocation of a dismissed view controller?
  • Index(es):
    • Date
    • Thread