如何让 iOS 正确遵守“apple-touch-icon-precomposed”规则“网络应用程序”的链接属性
我已经为 iOS 创建了几个使用 apple-touch-icon-precomposed 链接属性方法,用于没有光泽的自定义主屏幕图标。但是,我最近遇到了一个问题,在添加主屏幕书签然后运行应用程序并退出应用程序(通过多任务处理)后,光泽度被应用于图标!我不明白为什么会发生这种情况。我无法在 iPad 2 上重现该问题,但在运行 4.3.3 的 iPhone 3GS 上却不断发生这种情况。另外,好像和放在文件夹里有关系?
如果您愿意,该应用程序位于 http://pattern86.com/apps/color检查代码。
基本上发生的情况是这样的:
将应用程序添加到主屏幕。 (没有光泽——此时一切都很好。)
从多任务处理中退出应用程序(它这里已经显示出光泽!)
现在图标具有光泽效果!给出了什么?
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:
Add the app to the home screen. (No gloss--everything's good at this point.)
Quit the app from multitasking (It already shows the gloss here!)
Now the icon has the gloss effect! What gives?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(根据要求重新发布作为答案:)
可能与图标本身有关。图像有 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’?