How to change app icon within In-App Purchase?

烂漫一生 提交于 2019-12-24 05:43:24

问题


Is it possible even to change from demo icon to full version image after purchasing full version via InApp Purchase? Or should I make two versions with lite/full icons ?


回答1:


Please refer to https://stackoverflow.com/a/45602449/195186

This was true before iOS 10.3 only:

No. This is not possible. The icon is fixed.




回答2:


UIApplication has a new instance method that will do what you want. The Apple docs spell out exactly what you need to do to accomplish this: https://developer.apple.com/documentation/uikit/uiapplication/2806818-setalternateiconname




回答3:


This is not possible, since iOS apps run in a sandbox and can therefore not write (while they can read) the app's bundle, where the icon is located.




回答4:


1) In info.plist set up key Icon file with value ../Documents/icon.png. 2) Add key Icon already includes gloss effects with value YES 3) In first launch move picture to /Documents/icon.png

After second launch Icon app will be changed!

If you change icon.png in Documents folder need to make respiring for refresh Icon app.



来源:https://stackoverflow.com/questions/10515135/how-to-change-app-icon-within-in-app-purchase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!