In my code, I load a URL (an aspx file) in a UIWebview. It loads and displays fine.
[webView loadRequest:requestObject];
I want to inspect the HTML content being loaded on the iPhone. When I display it in UIWebview using the following code, the UIWebview display format is broken, showing lines and tables in word-wrap format.
NSString *htmlContent = [[NSString alloc] initWithContentsOfURL:inputUrl encoding:NSUTF8StringEncoding error:&error];
[webView loadHTMLString:htmlContent baseURL:nil];
What could cause the difference, when a file is opened using loadRequest versus loadHTMLString as above?