Opening a webpage within the app

Discussion in 'iOS Programming' started by ericthetechguy, Apr 7, 2014.

  1. ericthetechguy, Apr 7, 2014
    Last edited: Apr 7, 2014

    ericthetechguy macrumors newbie

    Nov 30, 2010
    I've read through several threads and searched a bunch, but only thing I keep pulling up is opening the webpage with Safari. Which isn't the goal in this. Maybe I'm not searching the correct words, but all I'm getting is the same results every time.. :/ I'm missing something with my searching obviously, I just do not know what...

    The goal: Click a button -> Open the webpage within the app

    The webpage updates with live results of a timing system for my local autocross region.

    I'm using Xcode 5.0.2. Any help will be appreciated! If you have any links to information, please send them my way.

    After I posted this I found the below, this looks like it might give me what I want..

    @property (nonatomic, strong) IBOutlet UIWebView *webView;
    @synthesize webView; 
    NSURL *url = [NSURL URLWithString:@""]; 
    NSURLRequest *requestURL = [NSURLRequest requestWithURL:url]; 
    [webView loadRequest:requestURL];
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    Yes. UIWebView will display an html page. The page can be local, inside your app, or a real internet URL, like It's not a web browser but it is a very full functioned web page display view.

    Something like the code you show will work.

    If you look through apple's sample code you'll find some examples.
  3. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
    I found plenty of search results for:
    uiwebview tutorial
    uiwebview sample code

Share This Page