Procházet zdrojové kódy

Fix window level that broke FLEX in the sim.

Ryan Olson před 12 roky
rodič
revize
e95460e97d
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      Classes/Explorer Toolbar/FLEXWindow.m

+ 3 - 2
Classes/Explorer Toolbar/FLEXWindow.m

@@ -16,8 +16,9 @@
     if (self) {
     if (self) {
         self.backgroundColor = [UIColor clearColor];
         self.backgroundColor = [UIColor clearColor];
         // Some apps have windows at UIWindowLevelStatusBar + n.
         // Some apps have windows at UIWindowLevelStatusBar + n.
-        // At CGFLOAT_MAX, we should be safe.
-        self.windowLevel = CGFLOAT_MAX;
+        // Using CGFLOAT_MAX works on 7.0 devieces but doesn't work in the 7.1 sim.
+        // Hopefully status bar level + 1000.0 gets the job done. It works in the 7.1 sim.
+        self.windowLevel = UIWindowLevelStatusBar + 1000.0;
     }
     }
     return self;
     return self;
 }
 }