Can I somehow encourage the deallocation of a dismissed view controller?
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