Function

UIDeviceOrientationIsValidInterfaceOrientation

Returns a Boolean value indicating whether the specified orientation is one of the portrait or landscape orientations.

Declaration

BOOL UIDeviceOrientationIsValidInterfaceOrientation(UIDeviceOrientation orientation);

See Also

Determining the Current Orientation

UIDeviceOrientationIsPortrait

Returns a Boolean value indicating whether the device is in a portrait orientation.

UIDeviceOrientationIsLandscape

Returns a Boolean value indicating whether the device is in a landscape orientation.

UIDeviceOrientationIsFlat

Returns a Boolean value indicating whether the specified orientation is face up or face down.