iOS Guides | Samples

MonoTouch.UIKit.UIImage.FromBundle Method

Gets an image from the specified bundle that is compatible with the specified trait collection.

Syntax

[MonoTouch.Foundation.Export("imageNamed:inBundle:compatibleWithTraitCollection:")]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.ThreadSafe]
public static UIImage FromBundle (String name, NSBundle bundle, UITraitCollection traitCollection)

Parameters

name
Loads an image from the bundle with the specified path name.
bundle

The bundle in which the image file or asset catalog is located.

This parameter can be null.

traitCollection

Traits describing the desired image to be retrieved.

This parameter can be null.

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0