Reputation: 2370
Is it dealloc or which method? If I setup some code in viewDidLoad
, I want to unistall this setup from the pair method of viewDidLoad
.. For example viewDidLoad
& viewDidDisappear
combo is not always clever combination. And sometimes is better to do the setup from viewDidLoad than from viewDidAppear
(because that can usually cause flickering)
Upvotes: 2
Views: 558
Reputation: 122429
Starting in iOS 6, views are no longer unloaded by the OS.
You can still manually unload your views when they are not needed by doing self.view = nil;
in your code, but in that case, any code you want to run when the view is unloaded can just be put after that line.
Upvotes: 1