Edytuj

Udostępnij za pośrednictwem


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

Display scale to set.

Returns

New instance of UITraitCollection with a single element specified.

Attributes

Applies to