UIKit.UIViewController.InterfaceOrientation Property
The current orientation of the interface.

Syntax

[ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_8_0, Message="Starting with iOS 8, you should use Adaptive View Controllers instead")]
[get: Foundation.Export("interfaceOrientation")]
[get: ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_8_0, Message="Starting with iOS 8, you should use Adaptive View Controllers instead")]
public virtual UIInterfaceOrientation InterfaceOrientation { get; }

See Also

Monotouch.UIKit.UIDevice.Orientation

Value

The current UIKit.UIInterfaceOrientation of the device.

Remarks

This value represents the rotation of the interface necessary to keep the interface upright.

Note that in portrait modes, the UIViewController.UIInterfaceOrientation will be the opposite of the UIDevice.Orientation. For example, if the device is rotated clockwise from upright so that it is in portrait mode with the home button on the left, the value of the UIKit.UIInterfaceOrientation will be UIInterfaceOrientation.LandscapeLeft but the value of UIDevice.Orientation will be UIDeviceOrientation.LandscapeRight.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0