A question about resolution independence...

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

A question about resolution independence...

Post by paulsr » Tue Jan 07, 2014 11:59 am

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]

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: A question about resolution independence...

Post by paulsr » Tue Jan 07, 2014 12:30 pm

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

Post Reply