ios 怎样判断页面是否加载完成

view did appear时候那肯定是已经 view did load过了。。不知道你是不是这个意思。。

⑵ ios如何加载本地文件

1,本地的html文件一定要放到工程文件的根目录

2,html代码中的图片路径一定要是相对路径

3,下面是用UIWebView调用本地文件的方法

方法一:

NSString *filePath = [[NSBundle mainBundle]pathForResource:@"1" ofType:@"html"];

NSString *htmlString = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil]

[myWebView loadHTMLString:htmlString baseURL:[NSURL URLWithString:filePath]];

方法二:

NSString *filePath = [[NSBundle mainBundle]pathForResource:@"1" ofType:@"html"];

NSURL *url = [NSURL fileURLWithPath:filePath];

NSURLRequest *request = [NSURLRequest requestWithURL:url];

[myWebView loadRequest:request];

[self.view addSubview:myWebView];