I know that the main (first) view controller does not unload until the app is quit on iOS but my question is why? I believe that you know how to use something better when you know why it is done like that.
Share
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.
The first view controller which you typically add to the main window of your app is typically initialized in the application delegate’s didFinishLaunchingWithOptions, ie. at app startup. It is the foundation unto which all other ui components are added. It is always present. If it were to unload before the app is quit then the app would no longer have a ui.