What is the complete list of way to show a View Controller which invokes the view lifecycle (viewDidAppear etc)
I would like to know the complete list of public apple factory methods that will show a view controller and invoke the view lifecycle.
- viewDidLoad
- viewWillAppear
- viewDidAppear
- viewWillDissapear
- viewDidDissapear
- viewDidUnload
Here are the ones I am aware of:
UINavigationController
setViewControllers:animated:
pushViewController:animated:
popViewControllerAnimated:
popToRootViewControllerAnimated:
popToViewController:animated:
UITabBarController
selectedViewController
(property)setViewControllers:animated:
UIViewController
presentModalViewController:animated:
dismissModalViewControllerAnimated:
Are there any I have missed?
I think -(void)awakeFromNib
should be one.
精彩评论