편집

다음을 통해 공유


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