Skip to content

Instantly share code, notes, and snippets.

@versluis
Created July 24, 2012 06:43
Show Gist options
  • Save versluis/3168422 to your computer and use it in GitHub Desktop.
Save versluis/3168422 to your computer and use it in GitHub Desktop.
How to load a URL into a web view
NSURL *detailURL;
detailURL=[[NSURL alloc] initWithString:@"http://www.yourwebsite.com"];
[self.myWebView loadRequest:[NSURLRequest requestWithURL:detailURL]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment