iOS 开发常用尺寸

来源:互联网 发布:批处理图片的软件 编辑:程序博客网 时间:2024/05/22 06:34

在cocoachina上看到iPhone开发中经常用到的控件尺寸大集合这篇文章,因为经常用到这些尺寸,在这里做一下记录。


Element Size (in points)
Window (including status bar) 320 x 480 pts
Status Bar
(How to hide the status bar) 20 pts
View inside window
(visible status bar) 320 x 460
Navigation Bar 44 pts
Nav Bar Image /
Toolbar Image up to 20 x 20 pts (transparent PNG)
Tab Bar 49 pts
Tab Bar Icon up to 30 x 30 pts (transparent PNGs)
Text Field 31 pts
Height of a view inside
a navigation bar 416 pts
Height of a view inside
a tab bar 411 pts
Height of a view inside
a navbar and a tab bar 367 pts
Portrait Keyboard height 216 pts
Landscape Keyboard height 140 pts

image

App Icon:

Table 5-2 Sizes for images in the CFBundleIcons key
Icon
Idiom
Size
Usage
App icon (required)
iPhone
57 x 57 pixels
114 x 114 pixels (@2x)
This is the main icon for apps running on iPhone and iPod touch.The @2x variant of the icon is for use on devices with Retinadisplays only.
App icon (required)
iPad
72 x 72 pixels
144 x 144 pixels (@2x)
This is the main icon for apps running on iPad. The @2x variant ofthe icon is for use on devices with Retina displays only.
Settings/Search results icon
iPhone/iPad
29 x 29 pixels
58 x 58 pixels (@2x)
This is the icon displayed in conjunction with search results oniPhone and iPod touch. This icon is also used by the Settings appon all devices.
The @2x variant of the icon is for use on devices with Retinadisplays only.
Search results icon
iPad
50 x 50 pixels
100 x 100 pixels (@2x)
This is the icon displayed in conjunction with search results oniPad. The @2x variant of the icon is for use on devices with Retinadisplays only.

启动画面:

Table 5-3 Typical launch image dimensions
Device
Portrait
Landscape
iPhone and iPod touch
320 x 480 pixels
640 x 960 pixels (@2x)
Not supported
iPad
768 x 1004 pixels
1536 x 2008 pixels (@2x)
1024 x 748 pixels
2048 x 1496 pixels (@2x)

文档本地位置:file:///Users/shjborage/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_1.iOSLibrary.docset/Contents/Resources/Documents/index.html#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html

0 0