tags:

views:

24

answers:

0

Hi I know this has been discussed here several times but I still can't get an answer to my problem. I've got a navigation controller app with a hierarchy of several view controllers. I had it crashing a lot until I learnt about the viewDidUnload method which (if I understood right) is triggered when a didRecieveMemoryWorning is being called. So, I have copied all my "self.[object created in viewDidLoad or xib]=nil"s to the viewDidUnload method, so now I have all these lines twice - on viewDidUnload and on the dealloc method. Problem is when I do get a memory worning the app eventually crashes and tell me that I've sent a message to an already dealocated object. What exactly should I do here? Thanks in advance, Uri