Inheritance: NSObject
コード例 #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);
 }
コード例 #2
0
 public UIActivityViewController(UIImage image)
 {
     IntPtr array = ObjC.ToNSArray(new[] { image.Handle });
     ObjC.MessageSendIntPtr(Handle, Selector.GetHandle("initWithActivityItems:applicationActivities:"), array, IntPtr.Zero);
 }