Do I still need to set IBOutlet properties to null in viewDidUnload with ARC?
Because it still generates the following comment:
// Release any retained subviews of the main view.
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.
For IBOutlets marked as strong you still do want to nil them out in viewDidUnload.
Why:
When you receive a low memory notification any views not currently visible may unload themselves (calling viewDidUnload) to save memory. By nilling out your outlets you are giving up ownership and letting them be released. When the view is loaded again (when it is shown again), the outlets will be setup again and viewDidLoad will be called.