如何让 iOS 正确遵守“apple-touch-icon-precomposed”规则“网络应用程序”的链接属性

发布于 2024-11-16 00:30:13 字数 923 浏览 6 评论 0原文

我已经为 iOS 创建了几个使用 apple-touch-icon-precomposed 链接属性方法,用于没有光泽的自定义主屏幕图标。但是,我最近遇到了一个问题,在添加主屏幕书签然后运行应用程序并退出应用程序(通过多任务处理)后,光泽度被应用于图标!我不明白为什么会发生这种情况。我无法在 iPad 2 上重现该问题,但在运行 4.3.3 的 iPhone 3GS 上却不断发生这种情况。另外,好像和放在文件夹里有关系?

如果您愿意,该应用程序位于 http://pattern86.com/apps/color检查代码。

基本上发生的情况是这样的:

  1. 将应用程序添加到主屏幕。 (没有光泽——此时一切都很好。)

    在此处输入图像描述

  2. 从多任务处理中退出应用程序(它这里已经显示出光泽!)

    在此处输入图像描述

  3. 现在图标具有光泽效果!给出了什么?

    在此处输入图像描述

I have created several web apps for iOS that employ the apple-touch-icon-precomposed link attribute method for custom home screen icons without the gloss. However, I have run into an issue recently, where, after adding the home screen bookmark and then running the app and exiting the app (via multitasking), gloss is applied to the icon! I don't understand why this happens. I can't reproduce it on an iPad 2, but this keeps happening on my iPhone 3GS running 4.3.3. Also, it seems that it might have something to do with putting it in a folder?

The app is located at http://pattern86.com/apps/color if you'd like to inspect the code.

Basically this is what happens:

  1. Add the app to the home screen. (No gloss--everything's good at this point.)

    enter image description here

  2. Quit the app from multitasking (It already shows the gloss here!)

    enter image description here

  3. Now the icon has the gloss effect! What gives?

    enter image description here

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

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

发布评论

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

评论(1

你爱我像她 2024-11-23 00:30:13

(根据要求重新发布作为答案:)

可能与图标本身有关。图像有 Alpha 通道吗?您的其他正在运行的应用程序吗?

(reposting as an answer, as requested:)

Could be something to do with the icon itself. Does the image have an alpha channel? Do your other, working, apps’?

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