共用方式為


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

傳回

屬性

適用於