尹永奇 hace 5 años
padre
commit
260f5dab97
Se han modificado 1 ficheros con 36 adiciones y 0 borrados
  1. 36 0
      2.1.5.txt

+ 36 - 0
2.1.5.txt

@@ -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
+		}
+	}
+})