iphone开发 两种模式 UIWebView 显示 html

iphone开发 两种方式 UIWebView 显示 htmlNSBundle* bundle [NSBundle mainBundle]NSString*resPath

iphone开发 两种方式 UIWebView 显示 html

NSBundle* bundle = [NSBundle mainBundle];NSString*  resPath = [bunder resourcePath];NSString* filePath = [resPath stringByAppendPathComponent:@"test.html"]; [WebView loadHTMLString:[NSString stringWithContentsOfFile:filePath] baseURL:[NSURL fileURLWithPath:[bundle bundlePath]]];

?

?

NSString *fullPath = [NSBundle pathForResource:@"test" ofType:@"html" inDirectory:[[NSBundle mainBundle] bundlePath]];[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:fullPath]]];
?