views:

60

answers:

2

When I try to display a local HTML page un a UIWebView, the CSS for that page is not being applied. However, when I load that same page in the regular Safari, it is. What could be causing this?

+1  A: 

I assume you are using loadHTMLString to populate the content of the UIWebView? Is your CSS embedded in the HTML that you are loading into the view? If it references a file online, check that the URL file is the full path (not just the relative path).

If the CSS is referenced using a relative path it will work fine in the browser, but not in a UIWebView with statically loaded content.

Cannonade
A: 

This issue happens with when i'm loading http://www.google.com/m/search?q=taco and i cant for the life of me figure out how to solve this...

Jones