简体   繁体   English

Xcode故事板显示UI元素周围的蓝框。 我怎么关掉这个?

[英]Xcode Storyboard Shows Blue Frames Around UI Elements. How do I turn this off?

I'm honestly not sure what I did here. 老实说,我不确定我在这里做了什么。 I've never seen this before. 我以前从未见过这个。 Xcode is now showing blue frames around every UI Element in my Storyboard. Xcode现在在我的Storyboard中的每个UI元素周围显示蓝框。 This goes for ALL View Controllers inside it. 这适用于其中的所有视图控制器。 How can I undo this or fix this? 如何撤消或修复此问题?

Please See Screenshot Below: 请看下面的截图:

在此输入图像描述

They are the bounds rectangles for your UI elements - they help you see the size of the various elements where it may not be immediately obvious due to background colours etc. 它们是UI元素的边界矩形 - 它们可以帮助您查看各种元素的大小,这些元素可能由于背景颜色等原因而无法立即显现。

You can turn them off by going to the Editor menu->Canvas->Show Bounds Rectangles 您可以通过转到“编辑器”菜单 - >“画布” - >“显示边界矩形”来关闭它们

在此输入图像描述

In Xcode 9, turn off Editor->Canvas->Show Bounds Rectangles. 在Xcode 9中,关闭Editor-> Canvas-> Show Bounds Rectangles。 The rectangles still don't disappear. 矩形仍然不会消失。 Turn it back on, and then turn it off again, and the problem should be resolved. 重新打开,然后再将其关闭,问题应该解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM