|
@@ -0,0 +1,36 @@
|
|
|
|
+
|
|
|
|
+require('NSMutableDictionary','UIImage','UITabBarController','UIApplication')
|
|
|
|
+
|
|
|
|
+defineClass('MKRSelectDeviceController',{
|
|
|
|
+ 'initSubviews' : function (argument,originalInvocation) {
|
|
|
|
+ _OC_RunInvocation(originalInvocation)
|
|
|
|
+ var dataArr = self.dataArr()
|
|
|
|
+ var ballArr = self.ballArray()
|
|
|
|
+ var dict = NSMutableDictionary.dictionary()
|
|
|
|
+ dict.setObject_forKey('logo_bubble_dev_p5','pic')
|
|
|
|
+ dict.setObject_forKey('MW-P5','productModel')
|
|
|
|
+ dataArr.replaceObjectAtIndex_withObject(18,dict)
|
|
|
|
+
|
|
|
|
+ var btn = ballArr.objectAtIndex(18)
|
|
|
|
+ var image = UIImage.imageNamed('logo_bubble_dev_p5')
|
|
|
|
+ btn.setImage_forState(image,0)
|
|
|
|
+ self.startTime()
|
|
|
|
+ }
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+defineClass('MKRLaunchADManager',{},{
|
|
|
|
+ 'shouldShow' : function (argument,originalInvocation) {
|
|
|
|
+ var window = UIApplication.sharedApplication().keyWindow()
|
|
|
|
+ // UIViewController *last = window.rootViewController;
|
|
|
|
+ var controller = window.rootViewController()
|
|
|
|
+ // [UITabBarController class]
|
|
|
|
+ var res = controller.isKindOfClass(UITabBarController.class())
|
|
|
|
+ if (res == true){
|
|
|
|
+ return false
|
|
|
|
+ }else{
|
|
|
|
+ var originRes = _OC_RunInvocation(originalInvocation)
|
|
|
|
+ return originRes
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+})
|