iOS Guides | Samples

MonoTouch.UIKit.UIImage.FromBundle Method

Loads an image relative to the application bundle, and caches its result.

Syntax

[MonoTouch.Foundation.Export("imageNamed:")]
[MonoTouch.ObjCRuntime.ThreadSafe]
public static UIImage FromBundle (String name)

Parameters

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

Returns

Remarks

The underlying UIKit implementation keeps a cache of all images requested. If you do not want UIKit to keep a cache, use FromFile or FromFileUncached.

This can be used from a background thread.

Requirements

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