开发者

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.

  1. viewDidLoad
  2. viewWillAppear
  3. viewDidAppear
  4. viewWillDissapear
  5. viewDidDissapear
  6. viewDidUnload
开发者_StackOverflow

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜