What are the options for transitions between UIView controllers?
func transition(from: UIViewController, to: UIViewController, duration: TimeInterval, options: UIView.AnimationOptions, animations: ( () -> Void)?, completion: ( (Bool) -> Void)?) Transitions between two of the view controller’s child view controllers.
How do I initialize a view controller using a nib file?
To initialize a view controller object using a nib file, create your view controller class programmatically and initialize it using the init (nibName:bundle:) method. When its views are requested, the view controller loads them from the nib file.
How many UIView Controllers does an app have?
Every app contains at least one custom subclass of UIViewController. More often, apps contain many custom view controllers. Custom view controllers define the overall behaviors of your app, including the app’s appearance and how it responds to user interactions.
What happens when the device orientation of a view controller changes?
When the device orientation changes, the system calls this method on the root view controller or the topmost modal view controller that fills the window. If the view controller supports the new orientation, the system rotates the window and the view controller.
What happens when the interface orientation changes in UIKit?
When the interface orientation changes, UIKit calls this method on the window’s root view controller. That view controller then notifies its child view controllers, propagating the message throughout the view controller hierarchy.
Should I enable or disable the home button orientation on iOS?
It’s best practice to enable it for the iPad idiom. iOS devices without a Home button, such as iPhone 12, don’t support this orientation. You should disable it entirely for the iPhone idiom.