How to change Status Bar text color in iOS 7

How to change Status Bar text color in iOS 7
Set the UIViewControllerBasedStatusBarAppearance to YES in the .plist file.

  1. In the viewDidLoad do a [self setNeedsStatusBarAppearanceUpdate];

  2. Add the following method:

  • (UIStatusBarStyle)preferredStatusBarStyle
    {
    return UIStatusBarStyleLightContent;
    }

你可能感兴趣的:(How to change Status Bar text color in iOS 7)