第一步:在info.plist中添加一个字段:view controller -base status bar 设置为NO
第二步:在AppDelegate类的didFinishLaunchingWithOptions里添加:
if (IOS7) { // 判断是否是大于等于IOS7
//[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContentanimated:NO];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}
原文地址:http://blog.csdn.net/gyz413977349/article/details/45601613