iOS iPhone resolution approach?

Discussion in 'iOS Programming' started by cpuin, May 17, 2013.

  1. cpuin macrumors member

    Joined:
    Feb 3, 2013
    #1
    Hi,

    i'm about to make an iPhone app with HTML5 and JavaScript.
    I would like to know which is the right approach to make an app which will support both sizes for iPhone 4/4S and iPhone 5?
    I know that if i make it for iPhone 4 the rest of the space on iPhone 5 will be filled with black but is there some smart approach?

    Thanks in advance

    P.S.Does somebody know where i can find a XCode template which simply launch an HTML file?Meaning project that launches a browser.I don't want to use Phonegap
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Hi there.

    That's not an iPhone app, that's a web app. A well-designed web app can handle a variety of resolutions.

    Also, be aware: if you want to have an app that's available on the App Store, it needs to be more than just a front-end to a web-app. That is, in order to not get rejected by Apple, it needs to provide functionality beyond what the web-app provides.

    You sound like you're pretty new to programming. What's your background?
     
  3. cpuin thread starter macrumors member

    Joined:
    Feb 3, 2013
    #3
    I use C++ with QT but i never had developer registeation in Apple and i don't know which are their requirements for this kind of app.

    HTML5 + JavaScript wrapped in Cocoa webview
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    Without a paid developer account, you don't have access to the App Store Review Guidelines, which is where they explain about websites bundled as apps. If you don't plan on offering any functionality beyond a web-app, just make a web-app, advertise it, and forget about the App Store.

    Do you mean UIWebView? Make sure you understand the difference between Cocoa (OS X) and Cocoa Touch (iOS).
     
  5. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #5
    There is a class called WebView which is only available in OS X.

    There's a similar class for iOS called UIWebView.
     
  6. cpuin thread starter macrumors member

    Joined:
    Feb 3, 2013
    #6
    Thanks for the answers.

    By the way, are there the same requirements for Mac OS? I mean is there some alternative of PhoneGAP for Desktop? I would like to make also app for the mac os with HTML5 and JavaScript which should create/read file?
     

Share This Page