5

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.

Supertecnoboff
  • 5,886
  • 9
  • 50
  • 94

4 Answers4

9

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 :)

Supertecnoboff
  • 5,886
  • 9
  • 50
  • 94
4

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

Tyrelidrel
  • 364
  • 2
  • 9
  • Strangely these options are greyed out for me, but using the keyboard shortcut works. Afterwards these commands are no longer greyed out. – Ari Braginsky Aug 11 '15 at 20:51
4

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.

Badal Shah
  • 7,255
  • 2
  • 27
  • 59
0

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

DeyaEldeen
  • 7,562
  • 8
  • 32
  • 67