hide elements in xcode storyboard

爱⌒轻易说出口 提交于 2019-12-22 01:33:24

问题


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.


回答1:


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:




回答2:


I also cannot see the 'installed' checkbox (Xcode 6.4), but here is my workaround to temporarily hide a layer.

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.




回答3:


The Installed button is visible after Xcode 6 and later, also enable "Use Auto Layout" and "Use Trait Variations".



来源:https://stackoverflow.com/questions/25213440/hide-elements-in-xcode-storyboard

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