- This topic has 5 replies, 3 voices, and was last updated 11 years, 3 months ago by Stu Wade.
-
AuthorPosts
-
Stu WadeMemberHi guys,
I am developing an App primarily for the iPhone, but it would be nice for it to look reasonable on an iPad as well …
As the iPhone5 has a slightly longer screen than the 4 – it makes sense to have a layout with top stuff, bottom stuff and a stretchable panel for the middle stuff.
However, this structure looks awful on an iPad screen where the best format would probably be an iPhone5 sized panel in the middle of the screen.
Is it possible to combine both these behaviours? Or should I write two different Apps?
Unknown AuthorParticipantThe only way for your content to look great on any size screen is to present different screens for different screen sizes. Dynamic resizing in Mobione just doesn’t work (sorry). I do this in all my apps, since I cannot afford for my apps not to look great first time, everytime.
You can use something similar:
phoneui.documentReadyHandler = function() { n=window.screen.height; if (n < 500) { phoneui.gotoPage('m1-Homescreen_iphone4', 'NONE');} if (n > 500) { phoneui.gotoPage('m1-Homescreen_iphone5', 'NONE');} }
It’s also a nice way to roll different versions into one compilation. Wouldn’t it be cool to present iOS7 widgets for people running iOS7 and pre-7 widgets for users not yet upgraded to iOS7?
paulDMemberAgreed, I use this method also and roll the 3 apps into one. Works great for me.
Paul
Stu WadeMemberThanks guys!
All my attempted ‘solutions’ were far more complex than that – I guess my mind leans toward the devious rather than the simple.
Just to save myself a little testing, does this approach need a common Homescreen, which carries all the M1 load (custom.js, additional files etc) and is otherwise blank?
… And do either of you guys happen to know the size of a mini-iPad screen in M1 terms?
paulDMember@Stu Wade wrote:
Thanks guys!
All my attempted ‘solutions’ were far more complex than that – I guess my mind leans toward the devious rather than the simple.
Just to save myself a little testing, does this approach need a common Homescreen, which carries all the M1 load (custom.js, additional files etc) and is otherwise blank?
… And do either of you guys happen to know the size of a mini-iPad screen in M1 terms?
Yes that’s the way i do it.
As for mini, use the same screen size as the template for ipad it works fine.
Paul
Stu WadeMemberThanks again
-
AuthorPosts