iOS常用控件尺寸大集合

元素控件尺寸(pts)
Window(含狀態欄)320 x 480
Status Bar的高度20
Navigation Bar的高度44
含Prompt的Navigation Bar的高度74
Navigation Bar的圖標20×20(透明的png)
Tool Bar的高度44
Tool Bar的圖標20×20(透明的png)
Tab Bar的高度49
Tab Bar的圖標30×30(透明的png)
豎直時鍵盤的高度216、252(iOS 5+的中文鍵盤)
水平時鍵盤的高度162、198(iOS 5+的中文鍵盤)















iPhone App Icon:

圖標名稱尺寸用途是否必需
Icon.png57×57App Store和iPhone、iPod touch桌面顯示
[email protected]114×114Icon.png的高清模式
Icon-Small.png29×29“設置”應用和Soptlight搜索
[email protected]58×58Icon-Small.png的高清模式


iPad App Icon:

圖標名稱尺寸用途是否必需
Icon-72.png72×72iPad桌面顯示
Icon-50.png50×50Spotlight搜索
Icon-29.png29×29“設置”應用


iPhone、iPad通用App Icon:

圖標名稱尺寸用途是否必需
Icon.png57×57App Store和iPhone、iPod touch桌面顯示
Icon-72.png72×72iPad桌面顯示
Icon-50.png50×50iPad的Soptlight搜索
Icon-29.png29×29“設置”應用和iPhone、iPod touch的Soptlight搜索


延伸閱讀:Points VS. Pixels

    The iPhone 4 introduced a high resolution display with twice the pixels of previous iPhones. However you don't have to modify your code to support high-res displays; the coordinate system goes by points rather than pixels, and the dimensions in points of the screen and all UI elements remain the same.

    iOS 4 supports high resolution displays (like the iPhone 4 display) via the scale property on UIScreen, UIView, UIImage, and CALayer classes. If the object is displaying high-res content, its scale property is set to 2.0. Otherwise it defaults to 1.0.
    All you need to do to support high-res displays is to provide @2x versions of the images in your project. See the checklist for updating to iOS4 or Apple documentation for Supporting High Resolution Screens for more info.


原文出處:http://dangpu.sinaapp.com/?p=59


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章