Page 1 of 1
What is the best way to develop graphics on a card that will be used for both iPhone and iPad? - Solved
Posted: Tue Mar 16, 2021 1:42 pm
by DR White
I am working on single app for both phone and iPad.
Since the Height to width ratio are so different, how should I layout my card graphics so that they don't get so "stretched"?
Thanks,
David
Re: What is the best way to develop graphics on a card that will be used for both iPhone and iPad?
Posted: Tue Mar 16, 2021 1:50 pm
by DR White
Be back in couple hours.
Re: What is the best way to develop graphics on a card that will be used for both iPhone and iPad?
Posted: Wed Mar 17, 2021 5:02 am
by stam
Think your options are to either use the fullScreenMode
Code: Select all
set the fullscreenmode of <stack> to {empty|"exactFit"|"letterbox"|"noBorder"|"noScale"|"showAll"}
or Tinker with the geometry manager - however that's a bit problematic
or perhaps resize in code in the resizeStack handler (although i've not yet delved into mobile dev and not sure if this is the correct hander)
For sure the easiest is fullScreenMode and selecting a mode you prefer, but that will not be perfect as it makes compromises - but on the other hand no further action is needed.
Re: What is the best way to develop graphics on a card that will be used for both iPhone and iPad?
Posted: Wed Mar 17, 2021 7:20 am
by kdjanz
Perhaps do a portrait layout and a landscape layout in two substacks and then go from one to the other based on the device orientation. Hopefully fullscreen mode would cover up the smaller differences in aspect ratio between phones & tablets.
Haven’t tried it myself, but that would be my initial strategy.
Re: What is the best way to develop graphics on a card that will be used for both iPhone and iPad?
Posted: Wed Mar 17, 2021 4:19 pm
by DR White
Thanks for the help.