在 xcode 故事板中隐藏元素
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25213440/
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
hide elements in xcode storyboard
提问by Packy
Is there a way to hide elements in storyboard interface? What I am talking about is like in Photoshop how you can hide layers while working. I ask because I have some stacked items and it would be nice to not see everything at once while working sometimes.
有没有办法在故事板界面中隐藏元素?我所说的就像在 Photoshop 中如何在工作时隐藏图层。我问是因为我有一些堆叠的物品,有时在工作时不要一次看到所有东西会很好。
回答by ktzhang
While selecting your view/object, in the right panel click the 'Installed' button. Make you to reenable it when your done!
在选择您的视图/对象时,在右侧面板中单击“已安装”按钮。完成后让您重新启用它!
^
Make sure to select one of the views:
确保选择以下视图之一:
回答by AMW
I also cannot see the 'installed' checkbox (Xcode 6.4), but here is my workaround to temporarily hide a layer.
我也看不到“已安装”复选框(Xcode 6.4),但这是我临时隐藏图层的解决方法。
Select one of your views to 'hide' and in Utilities Pane, select Size inspector and set your X (horizontal) value to 1000 - which will slide the view off the screen, allowing you access to layers below. Don't forget to reset X value when done.
选择要“隐藏”的视图之一,然后在实用程序窗格中,选择大小检查器并将 X(水平)值设置为 1000 - 这会将视图滑出屏幕,从而允许您访问下面的图层。完成后不要忘记重置 X 值。
回答by Ravi Kumar
The Installed button is visible after Xcode 6 and later, also enable "Use Auto Layout" and "Use Trait Variations".
Installed 按钮在 Xcode 6 及更高版本之后可见,同时启用“Use Auto Layout”和“Use Trait Variations”。