Kaynağa Gözat

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

Ryan Olson 12 yıl önce
ebeveyn
işleme
8ffbe5a080
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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;
 }