views:

3737

answers:

4

I am working on a template for an iPhone App and was wondering what dpi resolution is used for it ? 300 or 72 ?

I am not sure and I hope somebody can answer me that question.

thanks in advance

farid

A: 

72 is the dpi for images

postalservice14
cool. Thank you very much.
A: 

Given the difference in the dpi between the iPhone and the simulator, you might want to use the raw pixel values of 480x320 for the iPhone screen.

mahboudz
yes, I have these dimensions. thank you anyway. By the way any good resources out there to download free templates?
There is a company/person who sells pads of paper that are meant as freehand templates, but I don't think that is what you are looking for. Also, I think the company that does OmniGraffle has templates for the iPhone.LMGTFY:http://www.knoxing.com/2007/08/20/create-iphone-apps-with-knox-iphone-template/http://www.osskins.com/main/joomla-mambo/commercial-joomla-15-template-iphone-template/2009/05/14http://graffletopia.com/stencils/358http://graffletopia.com/stencils/413http://iphonedevelopertips.com/design/omnigraffle-iphone-stencil.htmlhttp://konigi.com/tools/omnigraffle-ux-template
mahboudz
What are you really trying to do? I find Interface Builder to be a good starting point and then I print and draw things by hand. When I have some idea of what I want to do, I then get to work creating just the UI in Xcode, without the actual functionality, and anything that needs to be drawn, I do in Photoshop or other graphic tool. I do envy those who can use OmniGraffle and other tools to create their pre-coding UX designs. However, the amount of time I'd have to spend in OmniGraffle is best spent in Xcode and Photoshop (I hate/love/hate Photoshop).
mahboudz
awesome. Thanks guys for the resources and tips. I like OmniGraffle so far. Let's see how that goes.
+3  A: 

The iPhone screen has a resolution of 163dpi - use that in your template if you want to be able to print your screen designs at actual size.

Paul Dixon
o.k Thank you. So you mean for images and icons, I should use 163 dpi ?
You should use 163 dpi if you want to, for example, print your template and view your screen designs at *actual size*.
Paul Dixon
No, use 72 dpi for any images, etc. that you're using inside your app.
Canada Dev
thanks. I appreciate for your answers :)
+1  A: 

The iPhone screen has 163 DPI, but I've found that images at that resolution appear too small in Xcode and Interface Builder. I recommend pretending that the screen has 72 DPI when making bitmap images for the iPhone, but remember that the screen has 163 DPI if you're drawing a ruler.

Will Harris
This has some history behind it: The original Mac was (approximately) 72 DPI, giving one-pixel-per-point; this is still the "native" DPI of a lot of graphics calls (so when I try to set a userpic in Adium, it sees my camera's "300 DPI" and shrinks everything); this is annoying for things that should be pixel-for-pixel (like iPhone dev, since iPhone OS ignores DPI information). Of course, PNGs use integer pixels per metre so can't represent exactly 72 DPI, so occasionally I see images which appear slightly off in Xcode; the fix is to remove DPI information entirely (`pngcrush -rem pHYs`).
tc.