Support of iOS 5.0 icons with XCode 5

前端 未结 7 843
走了就别回头了
走了就别回头了 2021-02-04 12:06

I\'m using the new asset catalog AppIcon to set the right icons for iOS 5 (in theory), 6 and 7. Unfortunately, when installing the application on my iPad 1 (with iOS 5.1.1), the

7条回答
  •  梦谈多话
    2021-02-04 12:35

    Try this:

    Add this to your plist:

    CFBundleIcons
        
            CFBundlePrimaryIcon
            
                CFBundleIconFiles
                
                    Icon
                    Icon-72
                    Icon-Small
                    Icon-Small-50
                
            
        
    

    And then add the following icon files to the root level of your project (same folder as your xcodeproj file):

    Icon-72.png          (72x72)
    Icon-72@2x.png       (144x144)
    Icon-Small-50.png    (50x50)
    Icon-Small-50@2x.png (100x100)
    Icon-Small.png       (29x29)
    Icon-Small@2x.png    (58x58)
    

    You may or may not need to do all of these steps, but it worked for me. My project uses XCode 5's asset catalogs, but I still had to do this to get a proper icon on iPad1 running iOS 5.1.1 (which is a real shame!)

提交回复
热议问题