本文共 1850 字,大约阅读时间需要 6 分钟。
在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 ptsApp 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 Retina displays 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 of the 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 on iPhone and iPod touch. This icon is also used by the Settings app on all devices. The @2x variant of the icon is for use on devices with Retina displays only. Search results icon iPad 50 x 50 pixels 100 x 100 pixels (@2x) This is the icon displayed in conjunction with search results on iPad. The @2x variant of the icon is for use on devices with Retina displays 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)文档本地位置:
转载地址:http://vneji.baihongyu.com/