Created
June 30, 2014 07:27
-
-
Save minsOne/011ca9ad6095852085f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UIViewController willRotateToInterfaceOrientation:duration:] | |
| [UIViewController viewWillLayoutSubviews] | |
| [UIView layoutSubviews] | |
| [UIViewController viewDidLayoutSubviews] | |
| [UIViewController willAnimateRotationToInterfaceOrientation:duration:] | |
| [UIViewController shouldAutorotateToInterfaceOrientation:] | |
| [UIViewController didRotateFromInterfaceOrientation:] | |
| And when presenting a view controller we get the following: | |
| [UIViewController loadView] | |
| [UIViewController viewDidLoad] | |
| [UIViewController viewWillAppear:] | |
| [UIViewController shouldAutorotateToInterfaceOrientation:] | |
| [UIViewController viewWillLayoutSubviews] | |
| [UIView layoutSubviews] | |
| [UIViewController viewDidLayoutSubviews] | |
| [UIViewController viewDidAppear:] | |
| And finally dismissing a view controller (when orientation was changed in the child view controller): | |
| [UIViewController viewWillAppear:] - Note correct bounds here | |
| [UIViewController viewWillLayoutSubviews] | |
| [UIView layoutSubviews] | |
| [UIViewController viewDidLayoutSubviews] | |
| [UIViewController viewDidAppear:] | |
| http://kevindew.me/post/18579273258/where-to-progmatically-lay-out-views-in-ios-5-and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment