I have a sample.xhtml file which has few lines of javascript. This javascript will load a pdf file from the net.
If I use simple .xhtml file, it is loading properly. If I use Javascript, the webView is not displaying the .xhtml file properly
[_webView loadData:htmlData MIMEType:@"application/xhtml+xml" textEncodingName:@"UTF-8" baseURL:url];
1 Answer