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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -