Sent to the view controller after the user interface rotates.
Deprecated
Use view
to make interface-based adjustments.
SDKs
- iOS 2.0–8.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
Framework
- UIKit
Declaration
- (void)didRotateFromInterfaceOrientation:(UIInterface Orientation)fromInterfaceOrientation;
Parameters
fromInterfaceOrientation
The old orientation of the user interface. For possible values, see
UIInterface
.Orientation
Discussion
Subclasses may override this method to perform additional actions immediately after the rotation. For example, you might use this method to reenable view interactions, start media playback again, or turn on expensive drawing or live updates. By the time this method is called, the interface
property is already set to the new orientation. Your implementation of this method must call super
at some point during its execution.
This method is called regardless of whether your code performs one-step or two-step rotations.