适配 iOS 7

1. 你需要一个新的使用新圆角的120*120像素的icon

#define CUSTOM_APPEARANCE 0//pch


#if CUSTOM_APPEARANCE

[self customizeAppearance];

#endif

2. 如果你在自己的app中使用了UIAppearance那么就要注意了,很多iOS 6以及之前系统可以使用的东西现在要么无法工作,要么会有细微的变化
3. 所有可以运行iOS 7系统的iPhone都有Retina显示屏
4. 确保你的Retina图片仍然遵循@2x.png的命名规则,否则UIKit无法对他们的大小自动进行调整
5. Asset Catalogs
    
    
var icons = [
    
//for Ad Hoc Only
       { "name" : "iTunesArtwork@2x" , "size" : 1024 },
       { "name" : "iTunesArtwork" , "size" : 512 },

//for App
       {"name": "Icon", "size":57},        //iPhone Non-Retina (iOS 6.1 and Prior)
       {"name": "Icon@2x", "size":114},        //iPhone Retina (iOS 6.1 and Prior)
       {"name": "Icon-60@2x",         "size":120},        //iPhone Retina
      
       { "name" : "Icon-72" , "size" : 72 },         //iPad Non-Retina (iOS 6.1 and Prior)
       { "name" : "Icon-72@2x" , "size" : 144 },         //iPad Retina (iOS 6.1 and Prior)
       { "name" : "Icon-76" , "size" : 76 },         //iPad Non-Retina
       { "name" : "Icon-76@2x" ,         "size" : 152 },         //iPad Retina

//for Spotlight
       {"name": "Icon-Small", "size":29},        //iPhone Non-Retina (iOS 6.1 and Prior)
       {"name": "Icon-Small@2x", "size":58},        //iPhone Retina (iOS 6.1 and Prior)
// {"name": "Icon-Small-40@2x", "size":80}, //iPhone Retina duplicated

       { "name" : "Icon-Small-50" , "size" : 50 },         //iPad Non-Retina (iOS 6.1 and Prior)
       { "name" : "Icon-Small-50@2x" , "size" : 100 },         //iPad Retina (iOS 6.1 and Prior)
       { "name" : "Icon-Small-40" , "size" : 40 },         //iPad Non-Retina
       { "name" : "Icon-Small-40@2x" , "size" : 80 }         //iPad Retina
     ];

default

{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default@2x.png",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default-568h@2x.png",
"minimum-system-version" : "7.0",
"subtype" : "retina4",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default.png",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default@2x.png",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "Default-568h@2x.png",
"subtype" : "retina4",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值