【发布时间】:2012-01-30 13:23:52
【问题描述】:
我有一个无法解决的问题,我想运行Apple - HTML5 Showcase - Gallary
在我的 ipad 应用程序中的 UIWebView 中。
我尝试了一个本地 html 文件:
NSString *strr = [[NSBundle mainBundle] pathForResource:@"photo-gallery" ofType:@"html"];
NSString *str = [[NSString alloc] initWithContentsOfFile:strr encoding:NSASCIIStringEncoding error:nil];
NSLog(@"%@",str);
[webView loadHTMLString:str baseURL:nil];
还有一个服务器 html 文件,但它不起作用,谁能帮帮我,我想在 UIWebView 中显示一个 html5/css3。
提前谢谢。
【问题讨论】:
标签: ipad html css uiwebview ios-simulator