iOS Guides | Samples

MonoTouch.UIKit.UIImage Constructor

A constructor that initializes the object from the data stored in the unarchiver object.

Syntax

[MonoTouch.Foundation.Export("initWithCoder:")]
[MonoTouch.ObjCRuntime.DesignatedInitializer]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public UIImage (NSCoder coder)

Parameters

coder
The unarchiver object.

Remarks

This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the NSCoding protocol.

If you want to create a subclass of this object and continue to support deserialization from an archive, you should implement a constructor with an identical signature: taking a single parameter of type NSCoder and decorate it with the [Export("initWithCoder:"] attribute declaration.

The state of this object can also be serialized by using the companion method, EncodeTo.

Requirements

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