开发者

What is the complete list of way to show a View Controller which invokes the view lifecycle (viewDidAppear etc)

开发者 https://www.devze.com 2023-02-21 22:19 出处:网络
I would like to know the complete list of public apple factory methods that will show a view controller and invoke the view lifecycle.

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

精彩评论

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