解决方法1:
导航栏设置为不透明
self.navigationController.navigationBar.translucent = NO;
页面会向下压缩如同iOS6向下压缩self.view的高一样
---------------------------------------------------------------------------------------------------------------------------------------
解决方法2:
设置不滚动
if ([[[UIDevice currentDevice]systemVersion]floatValue]>=7.0) {
self.automaticallyAdjustsScrollViewInsets = NO;
}
页面不会向下压缩
---------------------------------------------------------------------------------------------------------------------------------------
ios7适配方案连接如下:
http://blog.csdn.net/chengwuli125/article/details/12613897
http://blog.csdn.net/chengwuli125/article/details/12617657?utm_source=tuicool