When I'm debugging my iPad app, I found because of low memory, some view controllers' viewDidUnload
got called. But seconds later, their viewDidLoad
are called. And then again because of low memory, viewDidUnload
, then viewDidLoad
again. This is like file system keep swapping files due to low memory.
Is it supposed to be like this, or I have done something wrong?
Then I wanna release the view controller to get rid of this. But sometimes viewDidUnload
is called before dealloc
, and then crash due to selector sent to deallocated view controller.
Thank you for any help.