luky
luky

Reputation: 2370

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

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

Answers (1)

newacct
newacct

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

Related Questions