hi,
If your url has fragment means you have to extract that fragment alone.Then load basic url with fragment it will work.
If your url has fragment means you have to extract that fragment alone.Then load basic url with fragment it will work.
NSString* webStringURL = /*enter your file path here*/;
NSURL* url = [NSURL URLWithString:webStringURL];
NSString *fragment=[url frament];
NSURL *baseURL = [NSURL fileURLWithPath:tmp];
NSURL *fullURL = [NSURL URLWithString:[NSString stringWithFormat:@"#%@",fragment] relativeToURL:baseURL];
[webView loadRequest:[NSURLRequest requestWithURL:url]];
No comments:
Post a Comment