質問

In Xcode, does the interface builder have some sort of customisable rulers like in Photoshop to help me position elements correctly?

I know it does those red lines which appear, but I mean lines that you can position yourself.

Thanks, Dan.

役に立ちましたか?

解決

I found the answer to my own question.

Basically click "Editor" on the menu bar. Then click "Add Horizontal Guide" or click "Add Vertical Guide".

Thats it, they are very good and they also show their position information. Very helpful :)

他のヒント

For xcode 6 it is Editor>Canvas>Add Horizontal Guide

After xcode Version 6.4 you can find this option here.

enter image description here

Or you can also use shortcut as shown in image.

these are the keyboard shortcuts

⌘ _ : add Horizontal guide line
⌘ | : add Vertical guide line

to remove a vertical guide, drag it out of the view.. vertically

to remove a horizontal guide, drag it out of the view.. horizontally

remove Xcode guide

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top