Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Interface Builder - Rulers/object guides

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.

like image 360
Supertecnoboff Avatar asked Jun 09 '13 10:06

Supertecnoboff


4 Answers

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

like image 134
Supertecnoboff Avatar answered Nov 19 '22 05:11

Supertecnoboff


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

like image 31
Tyrelidrel Avatar answered Nov 19 '22 04:11

Tyrelidrel


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.

like image 31
Badal Shah Avatar answered Nov 19 '22 05:11

Badal Shah


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

like image 1
DeyaEldeen Avatar answered Nov 19 '22 03:11

DeyaEldeen