What is the use of viewDidUnload and didReceiveMemoryWarning methods?
When they actually get called?
what are the difference between dealloc, viewDidUnload and didrecievedmemorywarning?
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.
viewDidUnload: It is called when viewcontroller recieves the low memory warning.
dealloc: It is called when the object/viewController is released.
didRecieveMemorywarning: Also called when the controller recieves the low memory warning.
So Whats the difference between viewDidUnload and didrecieveemoryWarning?
viewDidUnload is the place where you need to clean up the UI related things i.e., outlets.
didRecieveMemoryWarning is a place where you need to clean up the other objects which are holding memory and not used frequently.