Reputation:
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
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
Reputation: 18408
You can put some NSLog inside some methods like viewWillAppear:, viewDidAppear:, viewWillDisappear:, viewDidDisappear: ,and the method which calling dismissModalViewControllerAnimated:NO.
Upvotes: 1