UITraitCollection.FromDisplayScale(nfloat) 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 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