objective c - displaying String in webview -


i'm trying display set of strings webview, know can done, try create own html it,

[contentwebview loadhtmlstring:[nsstring stringwithformat:@"<html><head><link rel=\"stylesheet\" href=\"default.css\" type=\"text/css\" /><script type=\"text/javascript\" src=\"default.js\"></script></head><body%@>%@</body></html>", cssfontsizeoverride, webcontent] baseurl:nil]; 

but result, never show anything, i'm having blank page. 1 know how troubleshoot this? thanx in advance.

you're referencing external resources relative urls (default.css, default.js). can loaded if provide base url.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -