TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Feb 2016 |
Maintained by Bogdan Poplauschi.
YSWebView wraps a webview, UIWebView or WKWebView based on the OS availability.
#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];