标签:
如果没有是storyboard进行界面设计,在ios7之后会遇到rootviewcontroller的view被navigationbar遮盖的问题,其实很好解决
- (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.
}
标签:
原文地址:http://www.cnblogs.com/springday/p/5608621.html