开发者

UIWebView is very slow

I'm building a custom RSS reader app with incorporated feed link view (UIWebView).

Using the following code, when the view, containing WebUIView is loaded, it takes about 6 seconds before anything is outputted to the user:

-(void)viewDidLoad{
 [super viewDi开发者_开发问答dLoad];

 NSString *urlString = [[[self appDelegate] currentlySelectedBlogItem]linkUrl]; 
 NSURL *url = [NSURL URLWithString:urlString];
 NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

 [_webview loadRequest:requestObj];
 [_webview setScalesPageToFit:YES];
 }

Any ideas why UIWebView is being so slow?

I've checked the URL input, it's clean and what I'd expect it to be. I'm building for iOS 3.0 as base deployment target.


It appears that the built-in browser from UIWebView is not optimized like MobileSafari.


This has help me:

[webView setDataDetectorTypes: UIDataDetectorTypeNone];    

But the statment about jit for JS on WebView is also correct - mobile safari is faster.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜