ios 设置状态栏文本颜色为白色

1,在.plist文件中添加一个键值对:设置View controller-based status bar appearance的值为NO

2,在方法中

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
添加   [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

 
 
posted @ 2014-04-02 15:06  shidaying  阅读(275)  评论(0编辑  收藏  举报