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

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

2,在方法中

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

 
 

你可能感兴趣的:(ios)