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

谁都会走 提交于 2020-01-04 06:25:31

问题


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 click 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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/7150351/how-do-i-change-the-default-icon-of-iphone-application-programmatically

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