iPhone 图标,仅限 Retina?
我正在构建一个依赖于陀螺仪的应用程序,该应用程序仅在 iPhone 4+ 上可用。因此,我实际上只需要在设计中考虑 Retina 显示屏。
有没有办法在 Interface Builder 中仅指定高分辨率图像。 IB 是否有 Retina 预览模式(就像模拟器一样)?
我知道点与像素,但目前,似乎我需要同时制作 myicon.png
和 [电子邮件受保护]
版本并指定以前在IB。如果我只制作前者或后者,即使它们是高分辨率的,当它们到达我的 iPhone 时,它们也会被放大到在非 Retina 显示屏上显示的尺寸(并因此像素化)。
谢谢!
I'm building an app which relies on the gyroscope which is only available on iPhone 4+. Thus I really only need consider Retina displays in my design.
Is there a way to specify only hi-res images in Interface Builder. Is there a Retina preview mode for IB (like there is for Simulator)?
I know about points versus pixels but currently, it seems I need to make both myicon.png
and [email protected]
versions and specify the former in IB. If I only make only the former OR the later, even if they are hi-res, when they reach my iphone they've been scaled up to the size they would appear on a non-Retina display (and pixelated as a result).
thx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您还应该考虑到未来版本的 iOS 设备可能具有不同的功能组合。最好单独检查您需要的每项功能。
You should also consider that there may be future versions of iOS devices that have different combination of features. It's best to check for each feature that you need individually.
所以基本上,答案是“不”。包括 2 个图像,具有两种命名方案。
但是,您可以选择让它们具有相同的视网膜分辨率。我想尽管在部署之前批量重新调整它们会更安全。
So basically, the answer is "NO". Include 2 images, with both naming schemes.
You can, however, choose to have them both be the same retina resolution. I'd imagine though it's just plain safer to rescale them in bulk prior to deployment.
您仍然需要 iPad 的非视网膜版本
You still need the non-retina versions for iPad