UIImageAsset.FromTraitCollection(UITraitCollection) 方法

定义

从与 最匹配 traitCollection的资产中返回图像。

[Foundation.Export("imageWithTraitCollection:")]
public virtual UIKit.UIImage FromTraitCollection (UIKit.UITraitCollection traitCollection);
abstract member FromTraitCollection : UIKit.UITraitCollection -> UIKit.UIImage
override this.FromTraitCollection : UIKit.UITraitCollection -> UIKit.UIImage

参数

traitCollection
UITraitCollection

返回

属性

适用于