public UIAlertView() { Handle = ObjC.MessageSendIntPtr(Handle, "init"); ObjC.MessageSend(Handle, "setDelegate:", Handle); }
public UIActionSheet() { Handle = ObjC.MessageSendIntPtr(Handle, "init"); ObjC.MessageSend(Handle, "setDelegate:", Handle); }
public void ShowInView(UIView view) { ObjC.MessageSendIntPtr(Handle, "showInView:", view.Handle); }
public static IntPtr ToNSSet(IntPtr[] items) { IntPtr array = ToNSArray(items); return(ObjC.MessageSendIntPtr(GetClass("NSSet"), "setWithArray:", array)); }
public static IntPtr ToNSDate(DateTime date) { return(ObjC.MessageSendIntPtr(GetClass("NSDate"), "dateWithTimeIntervalSinceReferenceDate:", (double)((date.Ticks - 631139040000000000) / 10000000))); }
public static NSDictionary FromFile(string path) { return(Runtime.GetNSObject <NSDictionary>(ObjC.MessageSendIntPtr(_classHandle, "dictionaryWithContentsOfFile:", path))); }
public string[] KeysForObject(NSObject obj) { var array = Runtime.GetNSObject <NSObject>(ObjC.MessageSendIntPtr(Handle, "allKeysForObject:", obj.Handle)); return(ObjC.FromNSArray(array.Handle)); }
public static NSData FromBytes(IntPtr bytes, uint size) { return(Runtime.GetNSObject <NSData>(ObjC.MessageSendIntPtr(_classHandle, "dataWithBytes:length:", bytes, size))); }
public static NSData FromData(NSData source) { return(Runtime.GetNSObject <NSData>(ObjC.MessageSendIntPtr(_classHandle, "dataWithData:", source.Handle))); }
public UIPopoverController(UIViewController controller) { Handle = ObjC.MessageSendIntPtr(Handle, "initWithContentViewController:", controller.Handle); ObjC.MessageSend(Handle, "setDelegate:", Handle); }
public void SetPopoverContentSize(CGSize size, bool animated) { ObjC.MessageSendIntPtr(Handle, "setPopoverContentSize:animated:", size, animated); }
public static UIImage LoadFromData(NSData data, float scale) { return(Runtime.GetNSObject <UIImage>(ObjC.MessageSendIntPtr(_classHandle, "imageWithData:scale:", data.Handle, scale))); }
public static UIImage FromBundle(string name) { return(Runtime.GetNSObject <UIImage>(ObjC.MessageSendIntPtr(_classHandle, "imageNamed:", name))); }
public static SKPayment PaymentWithProduct(SKProduct product) { return(Runtime.GetNSObject <SKPayment>(ObjC.MessageSendIntPtr(_classHandle, "paymentWithProduct:", product.Handle))); }
// public double DaylightSavingTimeOffset(DateTime date) // { // return ObjC.MessageSendDouble(Handle, "daylightSavingTimeOffsetForDate:", date); // } public static NSTimeZone FromAbbreviation(string abbreviation) { return(Runtime.GetNSObject <NSTimeZone>(ObjC.MessageSendIntPtr(_classHandle, "timeZoneWithAbbreviation:", abbreviation))); }
public static NSData FromBytesNoCopy(IntPtr bytes, uint size, bool freeWhenDone) { return(Runtime.GetNSObject <NSData>(ObjC.MessageSendIntPtr(_classHandle, "dataWithBytesNoCopy:length:freeWhenDone:", bytes, size, freeWhenDone))); }
public static NSTimeZone FromName(string name) { return(Runtime.GetNSObject <NSTimeZone>(ObjC.MessageSendIntPtr(_classHandle, "timeZoneWithName:", name))); }
public double NumberFromString(string text) { return(ObjC.FromNSNumber(ObjC.MessageSendIntPtr(Handle, "numberFromString:", text))); }
public NSDictionary() { Handle = ObjC.MessageSendIntPtr(Handle, "init"); }
public UIUserNotificationSettings() { ObjC.MessageSendIntPtr(Handle, "init"); }
public AdBannerView(AdType type) { ObjC.MessageSendIntPtr(Handle, "initWithAdType:", (int)type); ObjC.MessageSend(Handle, "setDelegate:", Handle); }
public UILocalNotification() { ObjC.MessageSendIntPtr(Handle, "init"); }
public static IntPtr ToNSUrl(string str) { //NOTE: NSURL is all caps return(ObjC.MessageSendIntPtr(GetClass("NSURL"), "URLWithString:", str)); }
public UIActivityViewController(UIImage image) { IntPtr array = ObjC.ToNSArray(new[] { image.Handle }); ObjC.MessageSendIntPtr(Handle, "initWithActivityItems:applicationActivities:", array, IntPtr.Zero); }
public static IntPtr ToNSNumber(double value) { IntPtr handle = ObjC.MessageSendIntPtr(GetClass("NSDecimalNumber"), "alloc"); return(ObjC.MessageSendIntPtr(handle, "initWithDouble:", value)); }
public NSTimeZone() { ObjC.MessageSendIntPtr(Handle, "init"); }
public void DismissWithClickedButtonIndex(int buttonIndex, bool animated) { ObjC.MessageSendIntPtr(Handle, "dismissWithClickedButtonIndex:animated:", buttonIndex, animated); }
public NSTimeZone(string name) { Handle = ObjC.MessageSendIntPtr(Handle, "initWithName:", name); }
public NSObject() { Handle = ObjC.MessageSendIntPtr(ClassHandle, "alloc"); Runtime.RegisterNSObject(this); _shouldRelease = true; }
public SKProductsRequest(params string[] productIds) { ObjC.MessageSendIntPtr(Handle, "initWithProductIdentifiers:", ObjC.ToNSSet(productIds)); ObjC.MessageSend(Handle, "setDelegate:", Handle); }