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

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

Xcode Interface Builder - Rulers/object guides

xcodeinterface-builderrulers

提问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 Horizo​​ntal Guide

回答by Badal Shah

After xcode Version 6.4you can find this option here.

xcode 6.4 版之后,您可以在此处找到此选项。

enter image description here

在此处输入图片说明

Or you can also use shortcutas shown in image.

或者您也可以使用快捷方式,如图所示。