public static IntPtr ToNSArray(IntPtr[] items) { IntPtr intPtr = Marshal.AllocHGlobal((IntPtr)(items.Length * IntPtr.Size)); for (int i = 0; i < items.Length; i++) { Marshal.WriteIntPtr(intPtr, i * IntPtr.Size, items[i]); } IntPtr array = ObjC.MessageSendIntPtr(ObjC.GetClass("NSArray"), "arrayWithObjects:count:", intPtr, items.Length); Marshal.FreeHGlobal(intPtr); return(array); }
static SKProductsRequest() { _classHandle = ObjC.GetClass("SKProductsRequest"); }
static UIWindow() { _classHandle = ObjC.GetClass("UIWindow"); }
static NSObject() { _classHandle = ObjC.GetClass("NSObject"); }
static NSError() { _classHandle = ObjC.GetClass("NSError"); }
static AdBannerView() { _classHandle = ObjC.GetClass("ADBannerView"); }
static NSDictionary() { _classHandle = ObjC.GetClass("NSDictionary"); }
static UIActivityViewController() { _classHandle = ObjC.GetClass("UIActivityViewController"); }
static UIPopoverController() { _classHandle = ObjC.GetClass("UIPopoverController"); }
static UIImage() { _classHandle = ObjC.GetClass("UIImage"); }
static UIImageDispatcher() { _classHandle = ObjC.AllocateClassPair(ObjC.GetClass("NSObject"), "__UIImageDispatcher", 0); }
static SKPayment() { _classHandle = ObjC.GetClass("SKPayment"); }
static UIDevice() { _classHandle = ObjC.GetClass("UIDevice"); }
static NSLocale() { _classHandle = ObjC.GetClass("NSLocale"); }
static UIScreenMode() { _classHandle = ObjC.GetClass("UIScreenMode"); }
static UILocalNotification() { _classHandle = ObjC.GetClass("UILocalNotification"); }
static SKPaymentQueue() { _classHandle = ObjC.GetClass("SKPaymentQueue"); }
static NSData() { _classHandle = ObjC.GetClass("NSData"); }
static NSTimeZone() { _classHandle = ObjC.GetClass("NSTimeZone"); }
static NSNumberFormatter() { _classHandle = ObjC.GetClass("NSNumberFormatter"); }
static UIScreen() { _classHandle = ObjC.GetClass("UIScreen"); }
static Observer() { _classHandle = ObjC.AllocateClassPair(ObjC.GetClass("NSObject"), "__Observer", 0); }
static NSNotificationCenter() { _classHandle = ObjC.GetClass("NSNotificationCenter"); }
static SKProduct() { _classHandle = ObjC.GetClass("SKProduct"); }
static UIActionSheet() { _classHandle = ObjC.GetClass("UIActionSheet"); }
static SKPaymentTransaction() { _classHandle = ObjC.GetClass("SKPaymentTransaction"); }
static NSNotification() { _classHandle = ObjC.GetClass("NSNotification"); }
static UIUserNotificationSettings() { _classHandle = ObjC.GetClass("UIUserNotificationSettings"); }
static UIView() { _classHandle = ObjC.GetClass("UIView"); }
static UIApplication() { _classHandle = ObjC.GetClass("UIApplication"); }