Status Bar showing black text, only on iPhone 6 iOS 8 simulator

前端 未结 14 862
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 20:16

I\'m trying to convert my iOS 7 app to iOS 8 in Xcode 6 GM, and when i run it on the iPhone 5s or lower simulators with iOS 8 everything is fine, but on the iPhone 6 and 6 P

14条回答
  •  有刺的猬
    2020-12-07 21:13

    So here is how I fixed it

    In PLIST View Controller Based Status Bar NO Status Bar Style UIStatusBarStyleLightContent

    In AppDelegate DidFinishLaunching

    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
        [self.window setBackgroundColor:[UIColor whiteColor]];
    

    In Each View Controller

    - (UIStatusBarStyle) preferredStatusBarStyle {
        return UIStatusBarStyleLightContent;
    }
    

提交回复
热议问题