Dashcode web 剪辑图标,我已经尝试了所有方法,但它不会显示
我无法显示 dashcode web 剪辑图标,它只显示 safari 生成的图标。我尝试使用 dashcode 来设计它,然后我使用了代码,
<link rel="apple-touch-icon" href="Images/WebClipIcon.png">
我还尝试将名为 apple-touch-icon.png 的文件添加到根文件夹,但仍然不起作用。我已在模拟器、iPhone 和 iPad 上运行该网站,并且自定义 Web 剪辑图标不会显示。有没有人有建议
更新:我刚刚创建了一个新的 dashcode 项目并尝试添加一个 webclip 图标,但它仍然无法工作。这真的开始让我感到沮丧。
I can't get my dashcode web clip icon to show up, it just shows the safari generated icon. I have tried using dashcode to design it, then I used the code
<link rel="apple-touch-icon" href="Images/WebClipIcon.png">
I also tried adding a file named apple-touch-icon.png to the root folder and that still didn't work. I have run the site on the simulator, my iphone, and my ipad and the custom web clip icon will not show up. Does anyone have a suggestion
Update: I just created a new dashcode project and tried adding a webclip icon and it still won't work. This is really starting to frustrate me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要将图片添加到手机照片之外的图片文件中
You need to add the image to the image file that is outside the mobile photo
我将添加一件事给我造成这个问题。在尝试了所有记录的修复之后,我尝试向我的图标添加背景颜色。最初,我有一个透明的背景。当我向 .png 文件添加背景颜色后,一切就正常了。
我的步骤:
使用 GIMP 创建具有 7 层和透明背景层的 72x72 图像。
将副本另存为 apple-touch-icon.png 并添加到我的 Web 应用程序的根文件夹中。
在运行 IOS 5.0.1 的 iPad 2 上启动该网站。
“添加到主屏幕”
结果:主屏幕上出现黑色图标。
返回 GIMP,用颜色填充背景。
覆盖我的 .png 文件。
返回 iPad safari 重新加载网站。
“添加到主屏幕”
该图标现在按记录显示。
我的结论是:图标图像中足够或放置得当的透明区域将阻止 iOS 接受它为有效并导致它被拒绝。
I will add 1 thing that caused this issue for me. After trying all of the documented fixes, I tried adding a background color to my icon. Originally, I had a transparent background. Once I added a background color to the .png file, it all just worked.
My steps:
Use GIMP to create a 72x72 image with 7 layers and a transparent background layer.
Save a copy as apple-touch-icon.png and add to my web app's root folder.
Launch the website on my iPad 2 running IOS 5.0.1.
"Add to Home Screen"
RESULT: A black icon on the home screen.
Back in GIMP, fill the background with a color.
Overwrite my .png file.
Back to iPad safari to reload the site.
"Add to Home Screen"
The icon shows up now as documented.
My conclusion: sufficient or well placed transparent areas in the icon image will prevent iOS from accepting it as valid and cause it to be rejected.