iPhone 4 标签栏图标

发布于 2024-09-18 09:18:47 字数 243 浏览 5 评论 0原文

我在 iPhone 4 上正确显示高分辨率标签栏图标时遇到一些问题。基本上,我使用的是 Apple 准则 96 x 64 的高分辨率图标,但当我这样做时,我的图标看起来像是被缩放了许多次出现在选项卡栏图标区域中,并且只显示部分图标。如果我将图标大小设置为 30 x 30,图标的比例显示正确,但由于 iPhone 4 显示屏的分辨率较高,图标不清晰。

我尝试过其他尺寸,例如 64x64 和 60x60,但遇到了类似的问题。

有什么想法吗?

I'm having some issues getting high resolution tab bar icons displaying correctly for iPhone 4. Basically I'm using the Apple guidelines of 96 x 64 for high resolution icons, but when I do this, my icon looks like it is being scaled many times in the tab bar icon area and only part of the icon appears. If I set the icon size to 30 x 30, the icon displays correctly in terms of proportions but is not sharp because of the higher resolution of the iPhone 4 display.

I've tried other sizes like 64x64 and 60x60 but I get similar problems.

Any ideas?

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

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

发布评论

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

评论(2

南渊 2024-09-25 09:18:47

您必须将 @2x 添加到您的 iPhone 4 图像中。

因此,如果您有一个名为 image.png 的 30x30 图像,请制作一个 60x60 版本并将其命名为 [电子邮件受保护]..

you have to add @2x to youre iPhone 4 image..

So if you have a 30x30 image named image.png, make a 60x60 version and name it [email protected]..

小伙你站住 2024-09-25 09:18:47

你必须用@2x来命名你的图标文件!
但在属性检查器中,您必须填写“图像”字段,去掉文件名上的@2x:

示例:
原始文件名:“[电子邮件受保护]"
图片字段:“icone.png”

You have to name your icon file with @2x!
But in the attributes inspector you have to fulfill the field "Image" taking off the @2x on the file name:

example:
Original file name:"[email protected]"
Image field: "icone.png"

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