Explorar o código

Fix window level that broke FLEX in the sim.

Ryan Olson %!s(int64=12) %!d(string=hai) anos
pai
achega
e95460e97d
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      Classes/Explorer Toolbar/FLEXWindow.m

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

@@ -16,8 +16,9 @@
     if (self) {
         self.backgroundColor = [UIColor clearColor];
         // 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;
 }