Xcode 5: Embedding HTML Files in iOS App I have HTML files (along with CSS files) in my iOS app that I embed using the following code:
[webviewRevistas loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]];
While this code works fine, it does not seem to load the CSS file, resulting in a lack of style.
It's worth noting that the structure is correct, as opening the files in a browser shows them working properly.