My question is about changing default icon.png content programmatically.
- I have free application with Icon (with Lite/Free word inside)
- I have In-App purchase inside this app (buy full version)
- I 开发者_StackOverflowclick and accept this purchase
- Some app content is unlocked
- Also, I want my default Icon.png to be changed as well (replace it with NON Lite/Free word inside for example)
I saw this approach in some games but did not buy them to see the results.
You cannot change the application's icon at runtime. This is because it is in the application's bundle, which cannot be modified. Access to the application's bundle is restricted for security. Each bundle is code-signed by a certificate obtained through Apple's developer portal, which guarantees this condition.
To conclude, any files inside the application's bundle, like icons, or the Info.plist file, cannot be changed.
I am sure since you have purchased it you don't have source code.. but still try to look for image icon which must be in application folder.. just delete that icon and put whatever image you want with the same image name.. Also for that one.. you might have to install folder navigation icon. And then you can look in which folder it is install.. I ain't sure but it might be something called /app or /data. I am most of the time playing with android so I know for android where to look.
Thanks
精彩评论