I have a simple two page website that I would like to create an app for.
I currently have a UIWebView set up to receive a local HTML file:
- (void)viewDidLoad {
[super viewDidLoad];
NSString *file = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"];
NSURL *filePath = [NSURL fileURLWithPath:file];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:filePath];
[webView loadRequest:requestObj];
}
This works fine in loading the file; however the website has JQuery plugins and CSS stylesheets attached to it that are being ignored by the iPhone. I've no idea if I've imported the files correctly so this may be part of the problem (I'm still not 100% on how X-Code links to files).
If a group in X-Code (scripts) has a file in it called slider.js could I use the html to link to scripts/slider.js or is the groups part of the environment for display only? If so, how do I link to a file that's in a folder structure like this?
Cheers for your help.