To use presentModalViewController I must alloc and initWithNibName:bundle: a view. My question is: where do I release it? Does the dismissModalViewController:animated: handle the release?
To use presentModalViewController I must alloc and initWithNibName:bundle: a view. My question is: where
Share
No. If you allocatet and initialized it, than you have to release it. Do it like this:
PresentModalViewController:animated: increases automatically the retainCount. And as soon as the controller disappeared from the view, it will release the controller. And so the controller will be deallocated. 😉