1. NSString *basePath = [[NSBundlemainBundle] bundlePath];
NSString *relPath = [basePathstringByAppendingPathComponent:@"AAAA/index.html"];
NSString *myText = [NSStringstringWithContentsOfFile:relPath encoding:NSUTF8StringEncodingerror:nil];
UIWebView *web = [[UIWebViewalloc] initWithFrame:CGRectMake(0,0, 320,self.view.frame.size.height)];
[web loadHTMLString:myTextbaseURL:[NSURLfileURLWithPath:relPath]];
[self.view addSubview:web];
2. NSString *filePath = [[NSBundle mainBundle]pathForResource:@"1" ofType:@"html"];
NSURL *url = [NSURL fileURLWithPath:filePath];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[myWebView loadRequest:request];
[self.view addSubview:web];