I have to go to the bottom with the didRecieveMemoryWarning method. I have read like thirty threads about this topic on this forum. And every answer is differerent.
First question. Should you release objects in didRecieveMemoryWarning or just set them to nil? Or both?
I have read that I should release the tableView data source, if you have one, in the didRecieveMemoryWarning method. I have also read that you should just release IBOutlets i this method. I'm confused, what is correct here?
Is it only objects I initiate in viewDidLoad I should release in didRecieveMemoryWarning? Or is it properties I just assign to, for example:
labelTitleText.text = @"Woodie Guthrie"
? labelTitleText is a property in my header file.
In my application today, I release everything (also labels assigned like the example above) in my dealloc
method. This doesn't feel right.
I would really appreciate a small code example so it becomes easier to understand, this is what the other threads is missing to, I've noticed.
Have a great day everyone!