-2
我遇到了如何获得加载本地html文件的uiwebview的问题。提供cod e以及我有hmtl文件作为fp_dis-1.html。 由于事先如何在本地加载html文件到uiwebview
我遇到了如何获得加载本地html文件的uiwebview的问题。提供cod e以及我有hmtl文件作为fp_dis-1.html。 由于事先如何在本地加载html文件到uiwebview
试试这个,
UIWebView *page;
[page loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"your-local-file-url" ofType:@"html"]isDirectory:NO]]];
thansks很多它的工作.. – mrugen 2010-09-15 14:16:41