如何在iphone中设置css+html文件
UIWebView * webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0,320,458)];
webView.delegate=self;
[self.view addSubview:webView];
NSString *sPath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"index.html"];
NSURL *targetURL = [NSURL fileURLWithPath:sPath];
NSString *htmlContant = [NSString stringWithContentsOfFile:sPath];
htmlContant = [htmlContant stringByAppendingPathComponent:@"menu.css"];
NSString *content = [webView stringByEvaluatingJavaScriptFromString:@"window.getSelection().toString()"];
[webView loadHTMLString:[NSString stringWithFormat:htmlContant,content] baseURL:targetURL];