【iOS学习笔记】改变状态栏字体颜色
- Step1. info.plist中设置UIViewControllerBasedStatusBarAppearance为NO
- Step2. AppDelegate.m中添加
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// 设置状态栏的字体颜色为白色
[application setStatusBarStyle:UIStatusBarStyleLightContent];
return YES;
}
にっこにっこにーー!