iPhone 4 - 标签栏图标
如何设置高质量的 TabBarIcons,使其在新 iPhone 4 上看起来不错?
How can I set high qualitiy TabBarIcons so it will look nice on the new iPhone 4?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以新分辨率添加新的 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.