禁用视网膜显示?
我正在制作一个应用程序,但我不希望支持视网膜显示。糟糕的是我的应用程序看起来全是像素化的。可以停用视网膜显示功能吗?这样我的纹理比例就不会加倍。
UIScreen的scale属性是只读的,它的值在iphone 4中是2.0,我希望它是1.0,这样我在iphone 4中的图形看起来与旧设备完全相同,没有像素。
I'm making an app but I don't wish to support retina display. The bad thing is that my app looks all pixelated. It's possible to deactivate the retina display feature ? So that my texture's proportions won't be doubled.
The scale property of UIScreen is read only and it's value is 2.0 in iphone 4, I would like it to be 1.0, so that my graphics in the iphone 4 looks exactly the same as older devices, without pixels.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UIScreen 的scale 属性告诉您,视网膜屏幕上每个方向的物理像素数量是其两倍。
您不需要执行任何特殊操作即可使应用程序在视网膜显示屏上显示相同。
不过,如果您提供 @2x 图像,它看起来会稍微好一些,并且如果不存在 @2x 图像,那么在同一设备上以全分辨率运行的应用程序旁边,它可能看起来更加像素化。
The scale property of UIScreen is telling you that there are physically twice as many pixels in each direction on the retina screen.
You should not need to do anything special to get the app to appear the same on the retina display.
It will look slightly better if you provide @2x images though, and it may look more pixelated next to apps that are running at full resolution on the same device if the @2x images are not present.