Inheritance: NSObject
Ejemplo n.º 1
0
 public UIActivityViewController(string text, UIImage image)
 {
     IntPtr textHandle = ObjC.ToNSString(text);
     IntPtr array = ObjC.ToNSArray(new[] { textHandle, image.Handle });
     ObjC.MessageSendIntPtr(Handle, Selector.GetHandle("initWithActivityItems:applicationActivities:"), array, IntPtr.Zero);
     ObjC.MessageSend(textHandle, Selector.ReleaseHandle);
 }
Ejemplo n.º 2
0
 public UIActivityViewController(UIImage image)
 {
     IntPtr array = ObjC.ToNSArray(new[] { image.Handle });
     ObjC.MessageSendIntPtr(Handle, Selector.GetHandle("initWithActivityItems:applicationActivities:"), array, IntPtr.Zero);
 }