Skip to content

Instantly share code, notes, and snippets.

@scottsappen
Last active December 19, 2015 05:09
Show Gist options
  • Save scottsappen/5901902 to your computer and use it in GitHub Desktop.
Save scottsappen/5901902 to your computer and use it in GitHub Desktop.
Simple URL connection in iOS
NSString *urlAddress = @"http your url goes here";
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
[_aboutWebView loadRequest:requestObj];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment