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 320×480 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 320×480 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, 320×480 resolution :))
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.