I have added my Html, CSS and image files in the bundle of my Xcode application.
In my project I loaded the Html content in the UIWebView like this,
NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"myFile" ofType:@"html" inDirectory:nil];
NSString *htmlString = [NSString stringWithContentsOfFile:htmlPath encoding:NSUTF8StringEncoding error:nil];
NSURL *Url = [NSURL fileURLWithPath:htmlString];
[self.webView loadHTMLString:htmlString baseURL:Url];
The Html file is loaded, but CSS and Images are missing.
In my Html file add the CSS and images as follows,
<link href="/css/myCss.css" type="text/css" rel="stylesheet"/>
<img class"icon" alt="" src="/img/icon.png" />
Need help to resolve this problem.