iOS Guides | Samples

MonoTouch.UIKit.UIViewController.DidRotate Method

Called after the UI has rotated.

Syntax

[MonoTouch.Foundation.Export("didRotateFromInterfaceOrientation:")]
[MonoTouch.ObjCRuntime.Deprecated(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, "Starting with iOS 8, you should use Adaptive View Controllers instead")]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Void DidRotate (UIInterfaceOrientation fromInterfaceOrientation)

Parameters

fromInterfaceOrientation
The prior orientation.

Remarks

The application developer can override this method to perform rotation logic beyond what is provided by auto-rotation, for instance, recalculating expensive drawing parameters, modifying and restarting media playback, etc.

When this method is called, the UIViewController.InterfaceOrientation property has already been set to the new UIInterfaceOrientation.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0