Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ATG

macrumors regular
Original poster
Aug 7, 2005
187
0
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 :)
 

ATG

macrumors regular
Original poster
Aug 7, 2005
187
0
Get the main frame via the obvious method and use the loadHTMLString:baseURL: method.
Thanks :)

That took me under 2 minutes to find in the documentation.
Well good for you. I wasn't so fortunate
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.