第一步:打开**-Info.plist
点击根节点的+号新增一行:View controller-based status bar appearance,并设置为NO
第二步:打开
打开**delegate.m文件,在以下方法
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
....
}
里面输入
[application setStatusBarHidden:NO];
[application setStatusBarStyle:UIStatusBarStyleLightContent];