문제

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