iOS Guides | Samples

MonoTouch.UIKit.UIImage Constructor

Creates a UIImage by loading from the provided file name.

Syntax

[MonoTouch.Foundation.Export("initWithContentsOfFile:")]
[MonoTouch.ObjCRuntime.ThreadSafe]
public UIImage (String filename)

Parameters

filename
The path to a supported image file.

Remarks

The image will not be cached.

This can be used from a background thread.

Requirements

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