iOS Guides | Samples

MonoTouch.UIKit.UIViewController.DidRotate Method

Called after the UI has rotated.

Syntax

[MonoTouch.Foundation.Export("didRotateFromInterfaceOrientation:")]
[MonoTouch.ObjCRuntime.Availability(Deprecated=MonoTouch.ObjCRuntime.Platform.iOS_8_0, Message="Starting with iOS 8, you should use Adaptive View Controllers instead")]
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