iPhone屏幕分辨率更改在未来的硬件 [英] iPhone screen resolution changes in future hardware

查看:95
本文介绍了iPhone屏幕分辨率更改在未来的硬件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发应用程序时,我一直关注的是图像和视图组件的硬编码几何图形,这些图形和视图组件占据当前显示器世代的320x480性质。



我在StackOverflow和在示例/教程中看到很多答案,硬编码在屏幕尺寸。我已经做了一些尺寸为320x480的背景的纹理,但是我很小心使它们的UIViewContentModeScaleToFill,但我不完全肯定的像素定位在IB将导致硬件特定的接口。



在某些时候,我想象(和希望!)iPhone将有不同的显示分辨率。




  • li>

    您将在
    的未来中为
    变量屏幕分辨率做什么?




(假设当然有人想要超过640kb,哦对不起,320x480解析度:))



请参阅这个网址:
http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html#//apple_ref/doc/uid/TP40007072-CH10



对于Apple4的iOS4答案。

解决方案

如果有一种方法从API检索这些指标,你应该。回到过去的Mac,大量的人硬编码为9的屏幕。当我有我的mac XL(本质上是一个mac主板里面的一个lisa案例)它有一个12的屏幕和数量的破碎的应用程序没有扩展是传说。



不过,如果硬件上会有一些根本性的变化,苹果肯定会这样做。任何可以成功改变芯片平台的公司,TWICE都不必担心更新硬件,软件和其他任何东西来改善。


Something I've been concerned about for a while as I'm developing my applications is the oft hard coded geometry of images and view components that take for granted the 320x480 nature of the current display generations.

I've seen many answers in StackOverflow and in examples / tutorials that hard code in the screen dimensions. I've made some textures for backgrounds that are 320x480 in size as well, but am careful to make them UIViewContentModeScaleToFill, but I am not entirely positive that pixel positioning in the IB will result in hardware specific interfaces.

At some point I imagine (and hope!) that the iPhone will have different display resolutions.

  • Are you as developers planning for this?

  • What are you doing to account for variable screen resolutions in the future?

(Assuming of course that someone would want more than 640kb, oh sorry, 320x480 resolution :))

Please see this URL: http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html#//apple_ref/doc/uid/TP40007072-CH10

For iOS4 answer from Apple.

解决方案

You should be. If there is a way to retrieve those metrics from the API, you should. Back in the old days of the mac, lots of poeple hard coded for the the 9" screen. When I got my mac XL (essentially a lisa case with a mac main board inside) it has a 12" screen and the number of "broken" apps that didn't scale was legend.

Short of it is that if there is going to be some radical change in the hardware, Apple will surely do it. Any company that can successfully change chip platforms TWICE has no fear in updating hardware, software and whatever else to make things better.

这篇关于iPhone屏幕分辨率更改在未来的硬件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆