如何以编程方式更改 iPhone 应用程序的默认图标?

发布于 2024-11-30 20:14:11 字数 264 浏览 2 评论 0原文

我的问题是关于以编程方式更改默认 icon.png 内容。

  1. 我有带有 Icon 的免费应用程序(内部有 Lite/Free word)
  2. 我在该应用程序内有应用程序内购买(购买完整版)
  3. 我单击并接受此购买
  4. 一些应用程序内容已解锁
  5. 另外,我希望我的默认 Icon.png 为也进行了更改(例如,将其替换为内部的非精简版/免费单词)

我在一些游戏中看到了这种方法,但没有购买它们来查看结果。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

与之呼应 2024-12-07 20:14:11

您无法在运行时更改应用程序的图标。这是因为它位于应用程序的捆绑包中,无法修改。为了安全起见,对应用程序包的访问受到限制。每个捆绑包均由通过 Apple 开发者门户获得的证书进行代码签名,这保证了这一条件。

总而言之,应用程序包内的任何文件(例如图标或 Info.plist 文件)都无法更改。

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.

铁憨憨 2024-12-07 20:14:11

我确信既然你已经购买了它,你就没有源代码..但仍然尝试寻找必须位于应用程序文件夹中的图像图标..只需删除该图标并使用相同的图像名称放置你想要的任何图像..同样对于那个..您可能必须安装文件夹导航图标。然后你可以查看它安装在哪个文件夹中。我不确定,但它可能是名为 /app 或 /data 的东西。我大部分时间都在玩 android,所以我知道 android 应该去哪里寻找。

谢谢

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文