Hi!
I'm presenting a modalViewController. After I dismiss the modal view controller with:
- (void)dismissModalViewControllerAnimated:(BOOL)animated
.. the view is still in memory. How do I dismiss it such that it will use memory?
Thanks.
Hi!
I'm presenting a modalViewController. After I dismiss the modal view controller with:
- (void)dismissModalViewControllerAnimated:(BOOL)animated
.. the view is still in memory. How do I dismiss it such that it will use memory?
Thanks.
When you present your modal view controller, you need to release it.
I'm having the same problem. I'm only temporarily retaining the ViewController until I call presentModalViewController, then release the alloc. But after dismissModalViewControllerAnimated, I never get the ViewController's dealloc.
If I add a self-release from the ViewController, then I get this after control returns to the event loop:
Program received signal: “EXC_BAD_ACCESS”. objc_msgSend