原地址:http://blog.csdn.net/jonahzheng/article/details/11966395
步骤1、在ViewController中 loadView
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
if ( IOS7_OR_LATER )
{
self.edgesForExtendedLayout = UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = NO;
self.modalPresentationCapturesStatusBarAppearance = NO;
}
#endif // #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
步骤2 在AppBoard_iPhone.m中加入
- (UIStatusBarStyle)preferredStatusBarStyle {
return UIStatusBarStyleLightContent;
}
- (BOOL)prefersStatusBarHidden {
return YES;
}