状态栏,默认为黑色,改为白色步骤:
1.在info.plist中添加键值对:
<key>UIViewControllerBasedStatusBarAppearance</key> <false/>
2.添加代码:(添加到什么位置,根据你的需求)[[UIApplication sharedApplication] setStatusBarHidden:NO];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];