How do you make an HTML app?

Discussion in 'iPod touch' started by Sunrisemoon, Oct 20, 2009.

  1. Sunrisemoon

    Sunrisemoon New Member

    Joined:
    Jun 30, 2009
    Messages:
    855
    Likes Received:
    1
    Device:
    2G iPod touch
    No, not a web-app, but a .app. How can I make an HTML-driven app?
  2. Collateral

    Collateral Active Member

    Joined:
    Sep 23, 2007
    Messages:
    1,974
    Likes Received:
    6
    Device:
    iPhone 3GS (Black)
    1 main view consisting of a full-screen UIWebView which navigates to your local .hmtl file on load
  3. Sunrisemoon

    Sunrisemoon New Member

    Joined:
    Jun 30, 2009
    Messages:
    855
    Likes Received:
    1
    Device:
    2G iPod touch
    Huh? Could you simple post the coding in Obj-C for that?
  4. ToasterEater

    ToasterEater Member

    Joined:
    Jan 17, 2009
    Messages:
    537
    Likes Received:
    3
    Device:
    4G iPod touch
    Yes this would be helpful to me too.
  5. Gershmer

    Gershmer Active Member

    Joined:
    May 2, 2009
    Messages:
    1,628
    Likes Received:
    1
    Device:
    iPod touch
    [objc]
    FileName: WebViewController.m
    - (void)viewDidLoad {

    NSString *urlAddress = @"http://www.google.com";

    //Create a URL object.
    NSURL *url = [NSURL URLWithString:urlAddress];

    //URL Requst Object
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

    //Load the request in the UIWebView.
    [webView loadRequest:requestObj];
    [/objc]

    Just from a quick google. However, the HTML file will need to be on a viewable web page online. (don't know how you would display a local file)
  6. Collateral

    Collateral Active Member

    Joined:
    Sep 23, 2007
    Messages:
    1,974
    Likes Received:
    6
    Device:
    iPhone 3GS (Black)
  7. mk12360

    mk12360 New Member

    Joined:
    Oct 8, 2009
    Messages:
    10
    Likes Received:
    0
    Device:
    2G iPod touch
    Why in the world would you want an application bundle that just displays an HTML page? That would never get accepted into the app store. You can just use safari to navigate to it, and if users want an icon on the SpringBoard, they can choose "place webclip on home screen" or whatever its called in safari. Even then, a plain HTML page is pretty useless. Are you using something server-side like PHP to have some functionality?
  8. Sunrisemoon

    Sunrisemoon New Member

    Joined:
    Jun 30, 2009
    Messages:
    855
    Likes Received:
    1
    Device:
    2G iPod touch
    Why yes, we are positive today

    Please Register or Log in to view images

    . I don't want this for the App Store, I want it for a jailbreak theme...

Share This Page