Просмотр исходного кода

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

Ryan Olson лет назад: 12
Родитель
Сommit
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];
     self = [super initWithFrame:frame];
     if (self) {
     if (self) {
         self.backgroundColor = [UIColor clearColor];
         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;
     return self;
 }
 }