Screen size question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Screen size question
I was laying out an interface for a demo app that am not gonna publish in the app store
its just for me to show clients features and stuff they can request in apps
so since i have an iphone 6 i added the iphone 5 stack and started laying out the ui
am not using fullscreenmodes because am building for my phone only
when previewing on the simulator and my iphone i can see that a lot of elements are off screen
to the right and to the bottom i have a lot of stuff missing
screentrect gives me values that correspond to an iphone 5
whats the deal here?
thanks in advance
Edd.
its just for me to show clients features and stuff they can request in apps
so since i have an iphone 6 i added the iphone 5 stack and started laying out the ui
am not using fullscreenmodes because am building for my phone only
when previewing on the simulator and my iphone i can see that a lot of elements are off screen
to the right and to the bottom i have a lot of stuff missing
screentrect gives me values that correspond to an iphone 5
whats the deal here?
thanks in advance
Edd.
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Screen size question
I bet you this is going to be something like
useDeviceResolution
pixelScale
mobilePixelDensity
One of those... Just a guess
http://lessons.livecode.com/m/15262/l/1 ... -densities
Simon
useDeviceResolution
pixelScale
mobilePixelDensity
One of those... Just a guess
http://lessons.livecode.com/m/15262/l/1 ... -densities
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Screen size question
Thank you simon
everything is clear now
Edd.
everything is clear now
Edd.
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: Screen size question
What version of LC are you running. I've been using LC 8 with and developing on a iPhone 5 screen size. In the sim and on my iPhone 6s everything scales perfectly. I'm not using any code to scale the UI.
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: Screen size question
am using LC 8 indy rc1
Yes if you work on stacks of size 320 x 568 you are all good
i asked because if you make a stack at native resolutions in iphones 5 retina and up your UI its not gonna look how it should, you are going to have objects out of the screen
now by doing some research i learned that there is something called logical resolution, you can see the previous posts to read more about it
if you create at stack for an iphone 6+ at 1242 x 2208 you need to use scaling
do a test and get the screenrect and you will see that the numbers it gives you dont match the actual screen resolution
you need to set to true useDeviceResolution
and then it will give you the actual resolution of the screen wich in the test case its also gonna match the stack size
no since you don't know in what device the app its going to be running you have to use the scaling features of livecode (which work pretty well)
you can supply livecode with different graphic sizes for your app and he does all the work
i have been using that feature since i started using livecode so i did not notice the discrepancy between stack resolution and actual device resolution, so i asked here and got my answer
i was not gonna be able to sleep until i figure it out LOl
Luckily the livecode community rocks.
Edd.
Yes if you work on stacks of size 320 x 568 you are all good
i asked because if you make a stack at native resolutions in iphones 5 retina and up your UI its not gonna look how it should, you are going to have objects out of the screen
now by doing some research i learned that there is something called logical resolution, you can see the previous posts to read more about it
if you create at stack for an iphone 6+ at 1242 x 2208 you need to use scaling
do a test and get the screenrect and you will see that the numbers it gives you dont match the actual screen resolution
you need to set to true useDeviceResolution
and then it will give you the actual resolution of the screen wich in the test case its also gonna match the stack size
no since you don't know in what device the app its going to be running you have to use the scaling features of livecode (which work pretty well)
you can supply livecode with different graphic sizes for your app and he does all the work
i have been using that feature since i started using livecode so i did not notice the discrepancy between stack resolution and actual device resolution, so i asked here and got my answer
i was not gonna be able to sleep until i figure it out LOl
Luckily the livecode community rocks.
Edd.
Re: Screen size question
UPDATE
If you add splash screens with correct sizes on the standalone builder then you will be able
to work on all resolutions correctly
If you add splash screens with correct sizes on the standalone builder then you will be able
to work on all resolutions correctly
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Screen size question
I have been having this problem with all of my iPad apps under iOS 10. I just tried your suggestion (making the splash screen 2048x1536. No change.Pistris wrote:UPDATE
If you add splash screens with correct sizes on the standalone builder then you will be able
to work on all resolutions correctly
The closest I can get is to use none of the various fullscreenmode settings. Then the app is properly placed, but the right side of the screen is truncated (Just a large black vertical stripe).
Re: Screen size question
teacherguy what does screenrect and iphonedevice resolution values you get on the ipad
i have not worked on iOS 10 yet but on all other versions i get pixel perfect images
the only thing that fixed my resolution problems was adding the splash screens in the correct pixel sizes
i do use fullscreen modes but upload all images in different resolutions so live code selects the best one and you don't have to deal with scaling images
read this http://lessons.livecode.com/m/15262/l/1 ... -densities
i have not worked on iOS 10 yet but on all other versions i get pixel perfect images
the only thing that fixed my resolution problems was adding the splash screens in the correct pixel sizes
i do use fullscreen modes but upload all images in different resolutions so live code selects the best one and you don't have to deal with scaling images
read this http://lessons.livecode.com/m/15262/l/1 ... -densities
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am