プログラミング雑記

プログラミングの雑記です。

回転に関してメソッドが呼ばれる順序

iOS6以上の話

  • UIViewControllerをモーダル
loadView
viewDidLoad
supportedInterfaceOrientations
viewWillAppear
supportedInterfaceOrientations
viewDidAppear
  • UINavigationControllerをモーダル
[UINavigationController shouldAutorotate]
[UINavigationController loadView]
[UINavigationController viewDidLoad]
[UINavigationController supportedInterfaceOrientations]
[UINavigationController viewWillAppear:]
[UINavigationController supportedInterfaceOrientations]
[UIViewController(インナー) loadView]
[UIViewController(インナー) viewDidLoad]
[UIViewController(インナー) viewWillAppear:]
[UIViewController(インナー) supportedInterfaceOrientations]
[UIViewController(インナー) viewDidAppear:]
[UINavigationController viewDidAppear:]
  • UITabBarControllerをモーダル
[UITabBarController shouldAutorotate]
[UITabBarController loadView]
[UITabBarController viewDidLoad]
[UITabBarController supportedInterfaceOrientations]
[UIViewController(インナー) loadView]
[UIViewController(インナー) viewDidLoad]
[UIViewController(インナー) viewWillAppear:]
[UITabBarController viewWillAppear:]
[UIViewController(インナー) supportedInterfaceOrientations]
[UITabBarController supportedInterfaceOrientations]
[UIViewController(インナー) viewDidAppear:]
[UITabBarController viewDidAppear:]