简体   繁体   English

如何使iOS适当尊重“ Web应用程序”的“ apple-touch-icon-precomposed”链接属性

[英]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: 基本上就是这样:

  1. Add the app to the home screen. 将应用添加到主屏幕。 (No gloss--everything's good at this point.) (没有光泽-一切都很好。)

    在此处输入图片说明

  2. Quit the app from multitasking (It already shows the gloss here!) 从多任务退出应用程序(它已经在此处显示了光泽!)

    在此处输入图片说明

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

相关问题 android,主屏幕上的Web应用程序图标,而不是常规图标,apple touche图标:apple-touch-icon-precomposed - android, web app icon on the home screen instead of generic icon, apple touche icon : apple-touch-icon-precomposed Web Clip / Apple Touch图标显示问题 - Web Clip/Apple Touch Icon display issues 指定Apple iPhone苹果触摸图标HTML属性的桌面文本 - Specifying desktop text for Apple iPhone apple touch icon HTML attribute apple-mobile-web-app-capable 和 apple-touch-fullscreen 之间的区别 | iPhone / iOS 元标签 - Difference between apple-mobile-web-app-capable and apple-touch-fullscreen | iPhone / iOS meta tags 如何在iOS SDK中为用户提供预组合的SMS消息 - How to have a precomposed SMS message for the user in iOS SDK 苹果会自动拒绝禁用触摸屏的iOS应用吗? - Will Apple automatically reject an iOS app that disables the touch screen? 没有眩光的iOS网络应用程序图标 - iOS web app icon without glare 适用于iPhone 7的Apple Touch图标(主屏幕图标)吗? - Apple Touch Icon (Homescreen icon) for iPhone 7? 在iOS或Apple Watch中强制触摸 - Force touch in iOS or Apple Watch iOS应用程序-修复了Apple不允许您链接网站进行付款的问题? - iOS app - Fix Apple not allowing you link website for payment?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM