Xcode Interface Builder - 标尺/对象指南
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17008779/
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
Xcode Interface Builder - Rulers/object guides
提问by Supertecnoboff
In Xcode, does the interface builder have some sort of customisable rulers like in Photoshop to help me position elements correctly?
在 Xcode 中,界面构建器是否具有某种可自定义的标尺(如 Photoshop 中的标尺)来帮助我正确定位元素?
I know it does those red lines which appear, but I mean lines that you can position yourself.
我知道它会出现那些红线,但我的意思是你可以定位自己的线。
Thanks, Dan.
谢谢,丹。
回答by Supertecnoboff
I found the answer to my own question. Lol.
我找到了我自己问题的答案。哈哈。
Basically click "Editor" on the menu bar. Then click "Add Horizontal Guide" or click "Add Vertical Guide".
基本上单击菜单栏上的“编辑器”。然后单击“添加水平参考线”或单击“添加垂直参考线”。
Thats it. There very good and they also show their position information. Very helpful :)
就是这样。那里非常好,他们还显示了他们的位置信息。很有帮助 :)
回答by Tyrelidrel
For xcode 6 it is Editor>Canvas>Add Horizontal Guide
对于 xcode 6,它是 Editor>Canvas>Add Horizontal Guide