Insert external web page


#1

How to insert external web page
It does not work through iframe or object embedding or jQuery load.
It does work with few web pages like www.web-source.net and w3schools.com but does not work with www.google.com or m.yahoo.com

I get an error Error -999
Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)
I have updated the MainViewController.m to handle this error as suggested by some blogs, But this did not help

  • (void) webView:(UIWebView*)theWebView didFailLoadWithError:(NSError*)error
    {
    NSLog(@"!!!Error %i", error.code);

    if (error.code == NSURLErrorCancelled) return; // this is Error -999

      return [super webView:theWebView didFailLoadWithError:error];
    

}