Example #1
0
        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_CountSelector.Handle, intPtr, items.Length);

            Marshal.FreeHGlobal(intPtr);
            return(array);
        }
Example #2
0
 static NSError()
 {
     _classHandle = ObjC.GetClass("NSError");
 }
Example #3
0
 static NSTimeZone()
 {
     _classHandle = ObjC.GetClass("NSTimeZone");
 }
Example #4
0
 static UIImageDispatcher()
 {
     _classHandle = ObjC.AllocateClassPair(ObjC.GetClass("NSObject"), "__UIImageDispatcher", 0);
 }
Example #5
0
 static UIUserNotificationSettings()
 {
     _classHandle = ObjC.GetClass("UIUserNotificationSettings");
 }
Example #6
0
 static UIApplication()
 {
     _classHandle = ObjC.GetClass("UIApplication");
 }
Example #7
0
 static NSDictionary()
 {
     _classHandle = ObjC.GetClass("NSDictionary");
 }
 static SKProductsResponse()
 {
     _classHandle = ObjC.GetClass("SKProductsResponse");
 }
Example #9
0
 static UIScreenMode()
 {
     _classHandle = ObjC.GetClass("UIScreenMode");
 }
Example #10
0
 static AdBannerView()
 {
     _classHandle = ObjC.GetClass("ADBannerView");
 }
Example #11
0
 static SKPaymentQueue()
 {
     _classHandle = ObjC.GetClass("SKPaymentQueue");
 }
Example #12
0
 static SKProduct()
 {
     _classHandle = ObjC.GetClass("SKProduct");
 }
Example #13
0
 static UIDevice()
 {
     _majorVersion = -1;
     _minorVersion = -1;
     _classHandle  = ObjC.GetClass("UIDevice");
 }
Example #14
0
 static UIActionSheet()
 {
     _classHandle = ObjC.GetClass("UIActionSheet");
 }
Example #15
0
 static NSNotification()
 {
     _classHandle = ObjC.GetClass("NSNotification");
 }
Example #16
0
 static SKPayment()
 {
     _classHandle = ObjC.GetClass("SKPayment");
 }
Example #17
0
 static UILocalNotification()
 {
     _classHandle = ObjC.GetClass("UILocalNotification");
 }
Example #18
0
 static NSData()
 {
     _classHandle = ObjC.GetClass("NSData");
 }
Example #19
0
 static UIDevice()
 {
     _classHandle = ObjC.GetClass("UIDevice");
 }
Example #20
0
 static NSObject()
 {
     _classHandle = ObjC.GetClass("NSObject");
 }
Example #21
0
 static UIScreen()
 {
     _classHandle = ObjC.GetClass("UIScreen");
 }
Example #22
0
 static UIWindow()
 {
     _classHandle = ObjC.GetClass("UIWindow");
 }
Example #23
0
 static NSBundle()
 {
     _classHandle = ObjC.GetClass("NSBundle");
 }
Example #24
0
 static UIAlertView()
 {
     _classHandle = ObjC.GetClass("UIAlertView");
 }
 static NSNumberFormatter()
 {
     _classHandle = ObjC.GetClass("NSNumberFormatter");
 }
 static UIPopoverController()
 {
     _classHandle = ObjC.GetClass("UIPopoverController");
 }
Example #27
0
 static UIImage()
 {
     _classHandle = ObjC.GetClass("UIImage");
 }
Example #28
0
 static SKProductsRequest()
 {
     _classHandle = ObjC.GetClass("SKProductsRequest");
 }
Example #29
0
 static UIActivityViewController()
 {
     _classHandle = ObjC.GetClass("UIActivityViewController");
 }
 static SKPaymentTransaction()
 {
     _classHandle = ObjC.GetClass("SKPaymentTransaction");
 }