YSWebView 依据操作系统可用性包装了 webview,UIWebView 或 WKWebView。
#import <YSWebView.h>
...
YSWebView *webView = [[YSWebView alloc] initWithFrame:frame];
[self.view addSubview:webview];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.yardi.com"]]];
OR
NSString *htmlString = @"<html><body><h1>title</h1></body></html>";
[webView loadHTMLString:htmlString baseURL:baseUrl];