[英]How to get iOS to properly respect the “apple-touch-icon-precomposed” link attribute for a “web app”
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. 我为iOS创建了多个Web应用程序,这些应用程序使用apple-touch-icon-precomposed链接属性方法创建了没有光泽的自定义主屏幕图标。 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.
我无法在iPad 2上重现它,但是在运行4.3.3的iPhone 3GS上却一直发生这种情况。 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. 如果您想检查代码,则该应用程序位于http://pattern86.com/apps/color 。
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?
是什么赋予了?
(reposting as an answer, as requested:) (根据要求重新发布作为答案:)
Could be something to do with the icon itself. 可能与图标本身有关。 Does the image have an alpha channel?
图片是否有Alpha通道? Do your other, working, apps'?
您的其他正在运行的应用程序吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.