1.xcode怎么写htmlXcode是苹果公司开发的编程软件,在视图控制中使用Html模板方法如下:
//方法一
NSString *path = [[NSBundle mainBundle] pathForResource:@"MyWebPage" ofType:@"html"];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[myWebView loadRequest:request];
//方法二
[myWebView loadHTMLString:@"
<html>
<head>
</head>
<body style=\"font-family: sans-serif;\">
.
</body>
</html>" baseURL:nil];
2.xcode怎么写htmlXcode是苹果公司开发的编程软件,在视图控制中使用Html模板方法如下: //方法一NSString *path = [[NSBundle mainBundle] pathForResource:@"MyWebPage" ofType:@"html"];NSURL *url = [NSURL fileURLWithPath:path];NSURLRequest *request = [NSURLRequest requestWithURL:url];[myWebView loadRequest:request];//方法二[myWebView loadHTMLString:@"<body style=\"font-family: sans-serif;\">。
.