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