UITraitCollection.FromUserInterfaceIdiom(UIUserInterfaceIdiom) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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