Greetings:
I'm just starting an app that I would like to be available on both iOS and Android. For now, I'm experimenting with iOS to see how resolution independence/pixel scaling works.
So, I have only one card, with a background image. I've made two images for landscape and two for portrait. Names & sizes are:
bglscape.png 1024x768
bg_lscape@extra-high.png 2048x1536
bgport.png 768x1024
bg_port@extra-high.png 1536x2048
I've checked that the correct image is being loaded on retina and non-retina iPads. So far so good.
If I query the image size of the background, for let's say landscape, they both report 1024x768. Okay, so I assume that's how pixel scaling is done. No matter what the real size of the image, the app stays the same, and I don't have to worry about the different real sizes.
Question: What will Apple think? Will they see this as a non-retina app and reject it? Hopefully not.
Now, I have the status bar turned on, so really, I should have adjusted the image sizes to allow for that, but for a quick test, it didn't seem necessary. Plus, on iOS7 the status bar is part of the app space, so I do need a full-size background image. The iPad non-retina looks fine, but...
The background image on the retina iPad, running iOS7, HALF covers the status bar. The top half of the status bar is just black background.
If I query the location of the background image, both retina (iOS5) and non-retina (iOS7) report 512,384
So, with a full-screen image, correctly positioned, I can't figure why on the iOS7 retina iPad, it seems to have been moved down by 20px, even tho LC is reporting it to be centered.
Thoughts/comments much appreciated...
--paul
[LC 6.5.1]
A question about resolution independence...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: A question about resolution independence...
Okay, I've found the reason for the half-covered status bar:
I coded 'set the fullscreenmode of this stack to "letterbox" ' but forgot to change the stack size from 1024x748 to 1024x768 !
One problem solved...
--paul
I coded 'set the fullscreenmode of this stack to "letterbox" ' but forgot to change the stack size from 1024x748 to 1024x768 !
One problem solved...
--paul