ios iPhone 应用程序使用什么 dpi 分辨率?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1365112/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What dpi resolution is used for an iPhone App?
提问by neoneye
I am working on a template for an iPhone App and was wondering what dpi resolution is used for it ? 300 or 72 ?
我正在为 iPhone 应用程序设计模板,想知道它使用的是什么 dpi 分辨率?300还是72?
I am not sure and I hope somebody can answer me that question.
我不确定,我希望有人能回答我这个问题。
回答by neoneye
iPhones
iPhone 1/3G/3GS 320 x 480 163 ppi
iPhone 4/4S 640 x 940 326 ppi
iPhone 5/5C/5S 640 x 1136 326 ppi
iPhone 6/6S 750 x 1334 326 ppi
iPhone 6 Plus/6S Plus 1080 x 1920 401 ppi
Without downsampling: 1242 x 2208 461 ppi
Except for the 6th generation (= 5th) iPod touch,
all the models are equal to their iPhone counterparts
iPads
iPad 1/2 768 x 1024 132 ppi
iPad 3/4/Air/Air 2 1536 x 2048 264 ppi
iPad Mini 1 768 x 1024 163 ppi
iPad Mini 2/3/4 1536 x 2048 326 ppi
iPad Pro 2737 x 2048 264 ppi
Apple Watches
Apple Watch 38 mm 272 x 340 326 ppi
Apple Watch 42 mm 312 x 390 326 ppi
回答by Paul Dixon
The original 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.
原始 iPhone 屏幕的分辨率为 163dpi- 如果您希望能够以实际尺寸打印屏幕设计,请在模板中使用该分辨率。
回答by postalservice14
72 is the dpi for images
72 是图像的 dpi
回答by mahboudz
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.
鉴于 iPhone 和模拟器之间 dpi 的差异,您可能希望对 iPhone 屏幕使用 480x320 的原始像素值。
回答by Will Harris
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.
iPhone 屏幕具有 163 DPI,但我发现该分辨率的图像在 Xcode 和 Interface Builder 中显得太小。我建议在为 iPhone 制作位图图像时假设屏幕具有 72 DPI,但请记住,如果您正在绘制标尺,屏幕具有 163 DPI。