views:

23

answers:

1

Hello All,

UIWebview load the content very slow.

WebView=[[UIWebView alloc]initWithFrame:self.view.bounds];
WebView.delegate=self;
[WebView addSubview:spinner];
[self.view addSubview:WebView];
NSString *decodeString=[@"www.google.com" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[WebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:decodeString]]];

What i did wrong?

Thanks in advance

Regards, Arunkumar.P

A: 

Last two lines should be:

[WebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com/"]]];

Your webview isn't loading "slow" at the moment; implement the error delegate method and you'll see what's really happening.

Mike Abdullah