I wonder push/pop viewController on navigation stack would retain/release the viewcontroller.
It’s not documented in apple doc.
I saw someone saying push retains. But is it documented or ok to believe that?
Thank you
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.
It definitely does retain on push and release on pop. I would say in this case it simply follows the convention of taking ownership of objects that you need to work with, that’s probably why the documentation doesn’t mention it explicitly.