ios - Work with relative URLs when using UIWebView's -loadData:MIMEType:textEncodingName:baseURL: -
how give baseurl:
when using uiwebview's loaddata:mimetype:textencodingname:baseurl:
?
when baseurl
set nil
, relative urls (html pages within tree) not working @ all.
it path resources:
[webview loaddata:data mimetype:type textencodingname:name baseurl:[nsurl urlwithstring:pathtoresources]];
Comments
Post a Comment