Icon already includes gloss effects

前端 未结 11 1624
臣服心动
臣服心动 2020-12-07 17:37

I have a problem with the gloss effect in app icon at iOS 5 beta 5, in iOS 4 it\'s show the effect not gloss, but iOS5 shows the gloss effect. I put the option Icon al

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 18:07

    I had the same problem with an unwanted gloss effect using xCode 5.0. I went through all posted answers. Here is what worked for me:

    1) Remove "Icon Already Includes Gloss Effects" from Info.plist. I did this because, although this is set to "YES", which should work properly -- for whatever reason, it wasn't working, so I wanted to remove it before adding the correct code.

    Here's how to do it: Click your project name in the navigator (left column) > then in the Editor (middle column) click info. In the field that states "Icon Includes Gloss Effects", click the minus "-" button to delete. This removes the code that is not working, so you will start with a clean palette.

    2) Open your Info.plist file -- In the Navigator (left column), find the info.plist file then (Right Click > Open As > Source Code).

    3) Your code will look like this:

        CFBundleIcons
    
        CFBundlePrimaryIcon
        
            CFBundleIconFiles
            
                Icon-120
                Icon-72
                Icon-57
            
        
    

    Now copy the following 2 lines of code, because you will paste them into the code above:

         UIPrerenderedIcon
            
    

    Your final code should look like this:

        
        CFBundlePrimaryIcon
        
            CFBundleIconFiles
            
                YourIconFile
            
            UIPrerenderedIcon
            
        
    

    This is the best answer I can provide. Worked for me.

提交回复
热议问题