若是没有是storyboard进行界面设计,在ios7以后会遇到rootviewcontroller的view被navigationbar遮盖的问题,其实很好解决
1. 设置view的top bar 为Opaue Navigation Bar
ios
2.在vc中加入
```设计
- (void)viewDidLoad { [super viewDidLoad]; if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)) { self.edgesForExtendedLayout = UIRectEdgeNone; } // Do any additional setup after loading the view from its nib. } ```