iPhone 4 - 标签栏图标

发布于 2024-09-06 20:09:16 字数 49 浏览 3 评论 0原文

如何设置高质量的 TabBarIcons,使其在新 iPhone 4 上看起来不错?

How can I set high qualitiy TabBarIcons so it will look nice on the new iPhone 4?

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

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

发布评论

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

评论(1

近箐 2024-09-13 20:09:16

以新分辨率添加新的 png 资源,并将 @2x 附加到文件名。如果您使用 IB,那么它应该会自动选取。如果您使用 -imageNamed:,则不要在图像名称中包含 .png 扩展名。

例如:“TabBarIcon.png”将具有“[电子邮件受保护] ” 文件是双分辨率的,将由 UIKit 在 iPhone 4 上自动加载。

请参阅 此处了解更多信息。

Add a new png resource at the new resolution and append @2x to the filename. If you are using IB then it should be picked up automatically. If you are using -imageNamed: then don't include the .png extension on the image name.

For example: "TabBarIcon.png" would have a "[email protected]" file that is at double resolution, and will be loaded by UIKit automatically on the iPhone 4.

see Here for more information.

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