开发者

How do I change the default icon of iPhone application programmatically?

My question is about changing default icon.png content programmatically.

  1. I have free application with Icon (with Lite/Free word inside)
  2. I have In-App purchase inside this app (buy full version)
  3. I 开发者_StackOverflowclick and accept this purchase
  4. Some app content is unlocked
  5. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜