Используйте эту строку кода, мой друг,
[WebView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]];
, и вот код, который я использую раньше:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *appSettingsPath = [documentsDirectory stringByAppendingPathComponent:@"index.html"];
Теперь у вас есть путь к файлу в вашем каталоге документов,затем:
[webview loadHTMLString:SiteString baseURL:[NSURL fileURLWithPath:appSettingsPath]];