A ATG macrumors regular Original poster Feb 27, 2007 #1 I have some html source of a page I want to load into a WebView. However it is not in a file and so I can't just load from a URL. Is there any way to load a WebView directly from an NSString or NSData holding the source code? Thanks for any help 🙂
I have some html source of a page I want to load into a WebView. However it is not in a file and so I can't just load from a URL. Is there any way to load a WebView directly from an NSString or NSData holding the source code? Thanks for any help 🙂
robbieduncan Moderator emeritus Feb 27, 2007 #2 Get the main frame via the obvious method and use the loadHTMLString:baseURL: method. That took me under 2 minutes to find in the documentation.
Get the main frame via the obvious method and use the loadHTMLString:baseURL: method. That took me under 2 minutes to find in the documentation.
A ATG macrumors regular Original poster Feb 27, 2007 #3 Get the main frame via the obvious method and use the loadHTMLString:baseURL: method. Click to expand... Thanks 🙂 That took me under 2 minutes to find in the documentation. Click to expand... Well good for you. I wasn't so fortunate
Get the main frame via the obvious method and use the loadHTMLString:baseURL: method. Click to expand... Thanks 🙂 That took me under 2 minutes to find in the documentation. Click to expand... Well good for you. I wasn't so fortunate