編輯

共用方式為


UITraitCollection.FromHorizontalSizeClass(UIUserInterfaceSizeClass) Method

Definition

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

[Foundation.Export("traitCollectionWithHorizontalSizeClass:")]
public static UIKit.UITraitCollection FromHorizontalSizeClass (UIKit.UIUserInterfaceSizeClass horizontalSizeClass);
static member FromHorizontalSizeClass : UIKit.UIUserInterfaceSizeClass -> UIKit.UITraitCollection

Parameters

horizontalSizeClass
UIUserInterfaceSizeClass

The desired horizontal size class to specify.

Returns

New instance of UITraitCollection with a single element specified.

Attributes

Applies to