When you dismiss a modal view controller is that view controller object destroyed ?
Also if you represent the same view controller again does it load from fresh – e.g is the “view did load” and “init” method called ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Releasing objects is your own responsibility, so you should release the view controller yourself, either after calling presentModalViewController, or sometime later (not recommended)
For example:
Calling dismissModalViewController later on will release the retained controller automatically.