After browsing through numerous questions and answers related to my issue, I have not found a specific and simple solution.
In my app, I am presenting multiple HTML files and I would like to utilize a CSS file for formatting. Both the CSS and HTML files are located locally together.
I believe that adding the CSS reference inline might be the correct approach - is this assumption accurate?
The code snippet looks like:
- (void)viewDidAppear:(BOOL)animated {
[super viewWillAppear:animated];
[adviceContent loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]
pathForResource:[advice objectForKey:@"HTML"] ofType:@"html"]
isDirectory:NO]]];
[super viewDidAppear:animated];
}
Within the <head> tags of my HTML file, I've added the CSS reference like so: < link rel="stylesheet" type="text/css" href="photovaluesCSS_2column.css" media="screen"/>
Could someone please point out where I might be making an error? Thank you