ObjCRuntime.Runtime.GetNSObject Method
Wraps an unmanaged IntPtr into a fully typed NSObject.

Syntax

public static Foundation.NSObject GetNSObject (IntPtr ptr)

Parameters

ptr
A pointer to an unmanaged NSObject or any class that derives from the Objective-C NSObject class.

Returns

An instance of a class that derives from Foundation.NSObject.

Remarks

The runtime create an instance of the most derived class.

Requirements

Namespace: ObjCRuntime
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0