xcode 从 UIScrollview 中删除内容和框架布局指南

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/58661462/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:03:09  来源:igfitidea点击:

Remove Content and Frame layout guides from UIScrollview

iosxcodeinterface-builder

提问by alxlives

I made a pod Xcode 11 and iOS 13, created an UIScrollview and set my content there.

我制作了一个 Pod Xcode 11 和 iOS 13,创建了一个 UIScrollview 并将我的内容设置在那里。

While installing on an older main project, this alert message shows:

在较旧的主项目上安装时,此警报消息显示:

Content and frame layout guides before iOS 11.0

iOS 11.0 之前的内容和框架布局指南

I can see the said layout guides in Interface Builder:

我可以在 Interface Builder 中看到上述布局指南:

Interface Builder layout guides

界面生成器布局指南

How can I remove them?

我怎样才能删除它们?

回答by Jishnu Raj T

simply uncheck the content layout Guides

只需取消选中内容布局指南

enter image description here

在此处输入图片说明

回答by RichW

Uncheck "Content Layout Guides" on the scroll view.

取消选中滚动视图上的“内容布局指南”。

Select ScrollView -> Property size inspector -> At the foot of the top-most Scroll View section (XCode 11.3.1)

选择 ScrollView -> 属性大小检查器 -> 在最顶部的 Scroll View 部分(XCode 11.3.1)的底部