IOS开发:IOS7下Statusbar出现透明及界面下方出现空白


原地址: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; }
原文地址:https://www.cnblogs.com/KingQiangzi/p/4521779.html