UITraitCollection.FromDisplayScale(nfloat) UITraitCollection.FromDisplayScale(nfloat) Method

Definition

Creates a new UITraitCollection object where only the display scale has been specified.

[Foundation.Export("traitCollectionWithDisplayScale:")]
public static UIKit.UITraitCollection FromDisplayScale (nfloat scale);
static member FromDisplayScale : nfloat -> UIKit.UITraitCollection

Parameters

scale
nfloat nfloat

Display scale to set.

Returns

New instance of UITraitCollection with a single element specified.

Applies to