facebook

Iphone 5 resize

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    huzairi
    Member

    Could anyone share a sample code that will auto resize the app if it is on iphone 5 size or iphone 4.
    Thanks.

    #335834

    Paul_paul
    Participant

    When you configure the ‘start up screen’ on the home page, select “Auto-Screen UI” and your project will more than likely fit all screen sizes.

    #335835

    paulD
    Member

    There is also some more info on this probelm in this thead.

    Hope this helps

    Paul

    http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=4950

    #335839

    Unknown Author
    Participant

    The only way to guarentee that your app will look good in iPhone 4 and iPhone 5 is to build pages specifically for those devices and choose between them on startup.

    
    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');}
    }
    
    #336695

    huzairi
    Member

    Hi, I am really new to mobione, I don’t get it how to add the startup script?
    And how do I create 2 pages with iphone 4 and iphone 5 sizes.

    Please send me a sample working files for my reference.
    Would really appreciate this.

    Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Iphone 5 resize

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