facebook

iPhone v iPad – CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #341097 Reply

    Stu Wade
    Member

    Hi 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?

    #341103 Reply

    Unknown Author
    Participant

    The 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?

    #341110 Reply

    paulD
    Member

    Agreed, I use this method also and roll the 3 apps into one. Works great for me.

    Paul

    #341114 Reply

    Stu Wade
    Member

    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?

    #341115 Reply

    paulD
    Member

    @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

    #341120 Reply

    Stu Wade
    Member

    Thanks again

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: iPhone v iPad – CLOSED

You must be logged in to post in the forum log in