iOS常用控件尺寸大集合
















iPhone App Icon:

图标名称尺寸用途是否必需
Icon.png57×57App Store和iPhone、iPod touch桌面显示
Icon@2x.png114×114Icon.png的高清模式
Icon-Small.png29×29“设置”应用和Soptlight搜索
Icon-Small@2x.png58×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.

译:
iPhone 4引入了高分辨率显示器两倍的像素的以前的iPhone。但是你不需要修改代码以支持高分辨率显示器;坐标系统的流逝点而不是像素,在屏幕的尺寸点和所有UI元素保持不变。

iOS 4支持高分辨率显示器(像iPhone 4显示)通过在UIScreen scale特性,UIView,UIImage,CALayer类。如果对象是显示高清晰的内容,其规模属性设置为2.0。否则它的默认值为1.0。
所有您需要做的来支持高分辨率显示器是提供@2x版本的图像在您的项目中。看到检查表更新到iOS4或苹果文档支持高分辨率屏幕获取更多的信息。


原文连接:http://dangpu.sinaapp.com/?p=59



     本文转自新风作浪 51CTO博客,原文链接:http://blog.51cto.com/duxinfeng/1208731,如需转载请自行联系原作者


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值