Edit

Share via


UITraitCollection.FromUserInterfaceIdiom(UIUserInterfaceIdiom) Method

Definition

Creates a new UITraitCollection object where only the user interface idiom has been specified.

[Foundation.Export("traitCollectionWithUserInterfaceIdiom:")]
public static UIKit.UITraitCollection FromUserInterfaceIdiom (UIKit.UIUserInterfaceIdiom idiom);
static member FromUserInterfaceIdiom : UIKit.UIUserInterfaceIdiom -> UIKit.UITraitCollection

Parameters

idiom
UIUserInterfaceIdiom

The desired user interface idiom to specify.

Returns

New instance of UITraitCollection with a single element specified.

Attributes

Applies to