UIKit.UIViewController.TraitCollectionDidChange Method
Method invoked when the trait collection for the view controller changed.

Syntax

[Foundation.Export("traitCollectionDidChange:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_8_0)]
public virtual void TraitCollectionDidChange (UITraitCollection previousTraitCollection)

Parameters

previousTraitCollection
The previous set of traits. When this method is invoked, the UIKIt.UIViewController.TraitCollection property has already been updated to reflect the new active traits.

Remarks

Application developers can override this method to adjust the user interface to react to changes to the user interface traits, such as the horizontal and vertical size classes for the application.

Requirements

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