Can't use safe areas in Xcode 9 after upgrading minimum deployment target to iOS 9

空扰寡人 提交于 2019-12-03 05:00:38

Just deselect "Use Safe Area Layout Guides" option, which should fix this. A screenshot below may point you the right direction. Hope this image can help

When you changed the deployment target, did it automatically change the deployment target in your storyboard? (File inspector when opening the Storyboard)

Did you update the deployment target in both the Project and in (all) your target(s)?

Project:

Target:

I didn't try quitting Xcode and restarting it before posting to SO! Sorry! The answer is, quit Xcode and try again.

Simple fix.

In file inspector for the view, look for Builds For in Interface Builder Document and in there select iOS 9 and later.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!