[iOS]改变状态栏颜色

改变状态栏颜色为白字黑底:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
}

另外要在info里面加上View controller-based status bar appearance  设置为  NO

posted @ 2015-03-05 17:20  SaiWu  阅读(356)  评论(0编辑  收藏  举报