问题
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