示例#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:count:", intPtr, items.Length);

            Marshal.FreeHGlobal(intPtr);
            return(array);
        }
示例#2
0
 static SKProductsRequest()
 {
     _classHandle = ObjC.GetClass("SKProductsRequest");
 }
示例#3
0
 static UIWindow()
 {
     _classHandle = ObjC.GetClass("UIWindow");
 }
示例#4
0
 static NSObject()
 {
     _classHandle = ObjC.GetClass("NSObject");
 }
示例#5
0
 static NSError()
 {
     _classHandle = ObjC.GetClass("NSError");
 }
示例#6
0
 static AdBannerView()
 {
     _classHandle = ObjC.GetClass("ADBannerView");
 }
示例#7
0
 static NSDictionary()
 {
     _classHandle = ObjC.GetClass("NSDictionary");
 }
示例#8
0
 static UIActivityViewController()
 {
     _classHandle = ObjC.GetClass("UIActivityViewController");
 }
示例#9
0
 static UIPopoverController()
 {
     _classHandle = ObjC.GetClass("UIPopoverController");
 }
示例#10
0
 static UIImage()
 {
     _classHandle = ObjC.GetClass("UIImage");
 }
示例#11
0
 static UIImageDispatcher()
 {
     _classHandle = ObjC.AllocateClassPair(ObjC.GetClass("NSObject"), "__UIImageDispatcher", 0);
 }
示例#12
0
 static SKPayment()
 {
     _classHandle = ObjC.GetClass("SKPayment");
 }
示例#13
0
 static UIDevice()
 {
     _classHandle = ObjC.GetClass("UIDevice");
 }
示例#14
0
 static NSLocale()
 {
     _classHandle = ObjC.GetClass("NSLocale");
 }
示例#15
0
 static UIScreenMode()
 {
     _classHandle = ObjC.GetClass("UIScreenMode");
 }
示例#16
0
 static UILocalNotification()
 {
     _classHandle = ObjC.GetClass("UILocalNotification");
 }
示例#17
0
 static SKPaymentQueue()
 {
     _classHandle = ObjC.GetClass("SKPaymentQueue");
 }
示例#18
0
 static NSData()
 {
     _classHandle = ObjC.GetClass("NSData");
 }
示例#19
0
 static NSTimeZone()
 {
     _classHandle = ObjC.GetClass("NSTimeZone");
 }
示例#20
0
 static NSNumberFormatter()
 {
     _classHandle = ObjC.GetClass("NSNumberFormatter");
 }
示例#21
0
 static UIScreen()
 {
     _classHandle = ObjC.GetClass("UIScreen");
 }
示例#22
0
 static Observer()
 {
     _classHandle = ObjC.AllocateClassPair(ObjC.GetClass("NSObject"), "__Observer", 0);
 }
示例#23
0
 static NSNotificationCenter()
 {
     _classHandle = ObjC.GetClass("NSNotificationCenter");
 }
示例#24
0
 static SKProduct()
 {
     _classHandle = ObjC.GetClass("SKProduct");
 }
示例#25
0
 static UIActionSheet()
 {
     _classHandle = ObjC.GetClass("UIActionSheet");
 }
示例#26
0
 static SKPaymentTransaction()
 {
     _classHandle = ObjC.GetClass("SKPaymentTransaction");
 }
示例#27
0
 static NSNotification()
 {
     _classHandle = ObjC.GetClass("NSNotification");
 }
示例#28
0
 static UIUserNotificationSettings()
 {
     _classHandle = ObjC.GetClass("UIUserNotificationSettings");
 }
示例#29
0
 static UIView()
 {
     _classHandle = ObjC.GetClass("UIView");
 }
示例#30
0
 static UIApplication()
 {
     _classHandle = ObjC.GetClass("UIApplication");
 }