Преглед изворни кода

Change the explorer window level to CGFLOAT_MAX to stay above all other windows.

Ryan Olson пре 12 година
родитељ
комит
8ffbe5a080
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      Classes/Explorer Toolbar/FLEXWindow.m

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

@@ -15,9 +15,9 @@
     self = [super initWithFrame:frame];
     if (self) {
         self.backgroundColor = [UIColor clearColor];
-        // Some apps have windows at UIWindowLevelStatusBar + 1.0, so we go one more above that.
-        // If necessary, this could be increased further.
-        self.windowLevel = UIWindowLevelStatusBar + 2.0;
+        // Some apps have windows at UIWindowLevelStatusBar + n.
+        // At CGFLOAT_MAX, we should be safe.
+        self.windowLevel = CGFLOAT_MAX;
     }
     return self;
 }