Returns a Boolean value indicating whether the view controller supports the specified orientation.
- iOS 2.0–6.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
The orientation of the app's user interface after the rotation. The possible values are described in
YES if the view controller auto-rotates its view to the specified orientation; otherwise,
By default, this method returns
YES for the
UIInterface orientation only. If your view controller supports additional orientations, override this method and return
YES for all orientations it supports.
Your implementation of this method should simply return
NO based on the value in the
interface parameter. Do not attempt to get the value of the
interface property or check the orientation value reported by the
UIDevice class. Your view controller is either capable of supporting a given orientation or it is not.