I have a HTML Ajax website which consists only of one HTML file. How can I create an iPhone App out of it? The HTML file should be stored locally on the iPhone so it functions offline.
+2
A:
Depending on what level of AJAX you're using, the "CSS Ninja" has a nice tutorial on how to add the proper code your HTML file to make it accessible offline.
Dillie-O
2010-02-05 21:52:38
Good hint! But I want to build a native iPhone App for the shop.
powtac
2010-02-05 21:55:07
+5
A:
UIWebView *htmlView = [[UIWebView alloc] initWithFrame:CGRectMake(0.0,0.0,320.0,380.0)];
[htmlView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]];
[self.view addSubview:htmlView];
[htmlView release];
Cirrostratus
2010-02-05 22:00:13
+1
A:
You will probably want to do at least a tab bar with the webpage in one tab and an "about" or something in the other. Apple has been known to refuse apps that are just a straight up wrapper of a single page.
Joe Cannatti
2010-02-05 22:19:00
A:
Finally I found two very good video tutorials which are explaining how to build an "UIWebView for iPhone App"
powtac
2010-02-05 22:55:32