我有一个HTML Ajax网站,其中只有一个HTML文件组成。如何使用它创建一个iPhone应用程序?超文本标记语言文件应该存储在iPhone本地,这样它才能脱机工作。
发布于 2010-02-06 06:00:13
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];https://stackoverflow.com/questions/2210696
复制相似问题