UIKit.UIViewController.WillAnimateRotation Method
Called prior to a one-step interface rotation.

Syntax

[Foundation.Export("willAnimateRotationToInterfaceOrientation:duration:")]
[ObjCRuntime.Availability(Deprecated=ObjCRuntime.Platform.iOS_8_0, Message="Starting with iOS 8, you should use Adaptive View Controllers instead")]
public virtual void WillAnimateRotation (UIInterfaceOrientation toInterfaceOrientation, double duration)

See Also

UIViewController.WillRotate
UIViewController.DidRotate

Parameters

toInterfaceOrientation
The new orientation.
duration
The duration of the rotation animation, in seconds.

Remarks

This method is called from with the animation block associated with a user interface rotation. When this method is called, the UIViewController.InterfaceOrientation is set to the new interface orientation and the UIView.Bounds of the UIKit.UIViewController's UIViewController.View have been modified.

Requirements

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