Removing Shine/Gloss effect on the iPhone through UIPrerenderedIcon not working on device

后端 未结 9 2191
温柔的废话
温柔的废话 2020-12-14 19:03

I have tried to use the UIPrerenderedIcon/\"Icon already includes gloss and bevel\" on the Info.plist of my app and it worked perfectly on the Simulator, but not on the real

9条回答
  •  既然无缘
    2020-12-14 19:16

    Yes this need two set at two places as described in above figure.
    
    
    If you want to set value dynamically using command from shell script or terminal, you can do that as below:
    
    /usr/libexec/PlistBuddy -c "Set :UIPrerenderedIcon YES" YOUR_PLIST_FILE_PATH
    
    /usr/libexec/PlistBuddy -c "Set :CFBundleIcons:CFBundlePrimaryIcon:UIPrerenderedIcon YES" YOUR_PLIST_FILE_PATH 
    
    **NOTE:** [Fore being helpful to the developer who want to set this using command]
    

提交回复
热议问题