UIWebView loading slow if using baseUrl
Posted
by ashish
on Stack Overflow
See other posts from Stack Overflow
or by ashish
Published on 2010-05-06T14:57:42Z
Indexed on
2010/05/07
5:58 UTC
Read the original article
Hit count: 783
this works very well and fast but it does not load images if I give baseurl instead of nil. It takes few seconds to load.
NSURL *myUrl = [[NSURL alloc] initFileURLWithPath:self.contentPath]; //NSLog(@”Content url is %@”,myUrl);
NSString *string = [[NSString alloc]initWithContentsOfFile:self.contentPath encoding:NSASCIIStringEncoding error:nil]; [contentDisplay loadHTMLString:string baseURL:nil]; //here nil if replaced by myUrl webView takes time to load. Any help ? [string release]; [myUrl release];
© Stack Overflow or respective owner