I’ve been using a handy little application called Free Ruler to determine the size of visual elements as well as measure and layout content.
My first use of Free Ruler was to determine how much space remained on the iPhone screen after I created a tabbar, navigation bar and a row of custom images along the bottom of the display (just above the tabbar). I needed an approximate count of the pixels remaining so I could layout a table in the remaining screen space.
The image below shows how one might use Free Ruler to count the number of pixels between the bottom of the navigation bar and the top of the UIDatePicker.

Comments
2 Responses to “iPhone Screen Ruler Utility”
Leave Comment
All Content Copyright © 2008-2012 • iOS Developer Tips, All Rights Reserved.
Nice. I like that it is very simple…and free.
If you’re looking for a more indepth tool, check out xscope. Along the same lines, but has a couple different tools that helps measuring screen elements, finding a color on screen, magnifying a certain area, and couple others. It, however, is not free. But it is very very useful and worth the $$$.
[Reply]
Another very flexible (and free) alternative is PixelStick:
http://www.pixelatedsoftware.com/products/pixelstick/index.html
[Reply]