(ios7) 解决Ios7中,Navigatebar 显示在主View中,和ios6 不一致问题
转:http://www.cnblogs.com/macroxu-1982/p/3333403.html
在ios 7 系统中 NavigateBar 显示在主View中 ,Ios6 不在主View中,导致后台代码的方式编写View不一致
解决方法:
在ViewControl的viewDidLoad 方法中
- (void)viewDidLoad
添加
float systemVersion = [[[UIDevice currentDevice] systemVersion] floatValue]; if (systemVersion >= 7.0) { //某个仅支持7.0以上版本的方法 self.edgesForExtendedLayout = UIRectEdgeNone; }

浙公网安备 33010602011771号