What is the pair method for viewDidLoad if viewDidUnload is deprecated?

546 views Asked by At

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)

1

There are 1 answers

0
newacct On

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.