Edytuj

Udostępnij za pośrednictwem


UIScreen.TraitCollectionDidChange(UITraitCollection) Method

Definition

Method invoked when the trait collection for the view controller changed.

[Foundation.Export("traitCollectionDidChange:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void TraitCollectionDidChange (UIKit.UITraitCollection previousTraitCollection);
abstract member TraitCollectionDidChange : UIKit.UITraitCollection -> unit
override this.TraitCollectionDidChange : UIKit.UITraitCollection -> unit

Parameters

previousTraitCollection
UITraitCollection

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

Implements

Attributes

Applies to