UIWebView Usage

Populating a UIWebview with a webpage or just HTML content.

  NSString *urlAddress = @"http://www.google.com";
  NSURL *url = [NSURL URLWithString:urlAddress];
  NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
  [pageContents loadRequest:requestObj];
  [pageContents setScalesPageToFit: YES];
  //  [pageContents loadHTMLString: @"<h2>Your privacy is our policy</h2>" baseURL:nil];

Tags:

Leave a Reply