瀏覽代碼

Remove support for long-deprecated global status bar management

Ryan Olson 6 年之前
父節點
當前提交
3650da6c12
共有 1 個文件被更改,包括 0 次插入15 次删除
  1. 0 15
      Classes/ExplorerInterface/FLEXExplorerViewController.m

+ 0 - 15
Classes/ExplorerInterface/FLEXExplorerViewController.m

@@ -61,12 +61,6 @@ typedef NS_ENUM(NSUInteger, FLEXExplorerMode) {
 /// If we're just showing the toolbar, we want the main app's window to remain key so that we don't interfere with input, status bar, etc.
 @property (nonatomic) UIWindow *previousKeyWindow;
 
-/// Similar to the previousKeyWindow property above, we need to track status bar styling if
-/// the app doesn't use view controller based status bar management. When we present a modal,
-/// we want to change the status bar style to UIStatusBarStyleDefault. Before changing, we stash
-/// the current style. On dismissal, we return the status bar to the style that the app was using previously.
-@property (nonatomic) UIStatusBarStyle previousStatusBarStyle;
-
 /// All views that we're KVOing. Used to help us clean up properly.
 @property (nonatomic) NSMutableSet<UIView *> *observedViews;
 
@@ -799,12 +793,6 @@ typedef NS_ENUM(NSUInteger, FLEXExplorerMode) {
     // Move the status bar on top of FLEX so we can get scroll to top behavior for taps.
     [[self statusWindow] setWindowLevel:self.view.window.windowLevel + 1.0];
     
-    // If this app doesn't use view controller based status bar management and we're on iOS 7+,
-    // make sure the status bar style is UIStatusBarStyleDefault. We don't actually have to check
-    // for view controller based management because the global methods no-op if that is turned on.
-    self.previousStatusBarStyle = [UIApplication.sharedApplication statusBarStyle];
-    [UIApplication.sharedApplication setStatusBarStyle:UIStatusBarStyleDefault];
-    
     // Show the view controller.
     [self presentViewController:viewController animated:animated completion:completion];
 }
@@ -820,9 +808,6 @@ typedef NS_ENUM(NSUInteger, FLEXExplorerMode) {
     // We want it above FLEX while a modal is presented for scroll to top, but below FLEX otherwise for exploration.
     [[self statusWindow] setWindowLevel:UIWindowLevelStatusBar];
     
-    // Restore the status bar style if the app is using global status bar management.
-    [UIApplication.sharedApplication setStatusBarStyle:self.previousStatusBarStyle];
-    
     [self dismissViewControllerAnimated:animated completion:completion];
 }