Editar

Compartir a través de


UITraitCollection.FromVerticalSizeClass(UIUserInterfaceSizeClass) Method

Definition

Creates a new UITraitCollection object where only the vertical size class has been specified.

[Foundation.Export("traitCollectionWithVerticalSizeClass:")]
public static UIKit.UITraitCollection FromVerticalSizeClass (UIKit.UIUserInterfaceSizeClass verticalSizeClass);
static member FromVerticalSizeClass : UIKit.UIUserInterfaceSizeClass -> UIKit.UITraitCollection

Parameters

verticalSizeClass
UIUserInterfaceSizeClass

The desired vertical size class to specify.

Returns

New instance of UITraitCollection with a single element specified.

Attributes

Applies to