user471416
user471416

Reputation:

[self dismissModalViewControllerAnimated:NO];

When we go from a view to another view with [self dismissModalViewControllerAnimated:NO]; what's the first thing that run?(means which function or line)

Upvotes: 0

Views: 611

Answers (2)

Björn Marschollek
Björn Marschollek

Reputation: 10009

-viewWillDisappear in the view controller of the modal view.

If you are aiming at the first thing not in the modal view, it is -viewWillAppear in the view controller of the previously underlying view.

Upvotes: 0

AechoLiu
AechoLiu

Reputation: 18408

You can put some NSLog inside some methods like viewWillAppear:, viewDidAppear:, viewWillDisappear:, viewDidDisappear: ,and the method which calling dismissModalViewControllerAnimated:NO.

Upvotes: 1

Related Questions