【iOS】Safe Area Layout Guide before iOS 9.0
2017-09-26 16:30
357 查看
iPhoneX马上快要预售了,齐刘海的小发型还是够屌屌的。今天升级完Xcode9, 打开Xcode顺手编译的了一下工程结果报错了!差Xcode这么不给面子,看了下错误信息“Safe Area Layout Guide before iOS 9.0”,“Safe Area”, 记得WWCD上面老库克提到过对于iPhone X的适配苹果提供了一个安全区域的概念,我的Xcode工程最低支持版本是7.0,所以编译报错。
看了一下ViewController中确实多了一个像状态栏的View,这个应该就是刘海的部分了,如图:
然后这个问题解决确实很简单的:选中Storyboard,查看“Show the File inspector”, 属性面板中默认勾选了”Usa SafeArea Layout Guides” 的选项,去掉它就可以解决问题了。
最后如果工程中有 LaunchScreen.storyboard 的同学不要忘记去除launchScreen面板中的 “Usa SafeArea Layout Guides” 的选项。
看了一下ViewController中确实多了一个像状态栏的View,这个应该就是刘海的部分了,如图:
然后这个问题解决确实很简单的:选中Storyboard,查看“Show the File inspector”, 属性面板中默认勾选了”Usa SafeArea Layout Guides” 的选项,去掉它就可以解决问题了。
最后如果工程中有 LaunchScreen.storyboard 的同学不要忘记去除launchScreen面板中的 “Usa SafeArea Layout Guides” 的选项。
相关文章推荐
- 关于iOS safe area layout guide before ios 9.0问题的解决
- Xcode 更新到9.0 新建xib报错: Safe Area Layout Guide Before IOS 9.0
- Safe Area Layout Guide before ios9.0
- Safe Area Layout Guide before ios9.0 解决方法
- iOS---------- Safe Area Layout Guide before iOS 9.0
- iPhoneX适配篇 && Safe Area Layout Guide Before IOS 9.0
- Error:Safe Area Layout Guide before iOS 9.0 - iOS
- safe area layout guide before ios 9.0
- xcode9 safe area layout guide before ios 9.0问题
- Xcode 9 illegal Configuration Safe Area Layout Guide before iOS 9.0
- safe area layout guide before ios 9.0
- Safe Area Layout Guide before iOS 9.0
- iOS11,Xcode 9.0 报错,Safe Area Layout Guide Before iOS 9.0
- xcode 9 :Safe Area Layout Guide before iOS 9.0?
- Xcode 更新到9.0 新建xib报错: Safe Area Layout Guide Before IOS 9.0
- [iOS] Safe Area Layout Guide before iOS 9.0
- iOS开发Debug之“Safe Area Layout Guide before iOS 9.0”报错
- iOS开发中,illegal configuration Safe Area Layout Guide before iOS 9.0
- Xcode 9 illegal Configuration Safe Area Layout Guide before iOS 9.0
- xcode xib报错 Safe Area Layout Guide Before IOS 9.0