I am currently creating a UIWebView where I load a NSString that I get from my server service. its just a simple HTML string, then I load it into a UIWebView like this:
urlAddress = [[NSURL alloc] initWithString:URLString];
//try removing cache so new stylesheet shows everytime- not sure if this is working yet
[[NSURLCache sharedURLCache] removeAllCachedResponses];
[InfoWebview loadHTMLString:returnedHtmlString baseURL:urlAddress];
Then for some reason the images are not showing and the style sheet is not working.
For instance my baseURL looks like this
https://myserveraddress/
and then the code for the CSS looks like this
<link rel="stylesheet" type="text/css" href="Data/iPhone/my.css">
My questions are this How does baseURL prefix itself onto that href? dose it request that css as the loadHTMLString loads onto the WebView? or something different
And How can I output the infoWebView source to NSString? to see if baseURL is prefixing itself onto those href links? or dose it now work like that?
Any help would be greatly appreciated.