Function

UIDeviceOrientationIsLandscape

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

Declaration

BOOL UIDeviceOrientationIsLandscape(UIDeviceOrientation orientation);

Parameters

orientation

Specify the value of the orientation property of the UIDevice class.

Return Value

Returns YES if the device orientation is landscape, otherwise returns NO.

See Also

Determining the Current Orientation

UIDeviceOrientationIsPortrait

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

UIDeviceOrientationIsFlat

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

UIDeviceOrientationIsValidInterfaceOrientation

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