https://github.com/nextfaze/yswebview
YSWebView wraps a webview, UIWebView or WKWebView based on the OS availability.
https://github.com/nextfaze/yswebview
Last synced: over 1 year ago
JSON representation
YSWebView wraps a webview, UIWebView or WKWebView based on the OS availability.
- Host: GitHub
- URL: https://github.com/nextfaze/yswebview
- Owner: NextFaze
- License: mit
- Created: 2015-09-08T03:30:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-08T03:51:55.000Z (almost 11 years ago)
- Last Synced: 2025-02-01T08:48:37.414Z (over 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 22
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
YSWebView
=========
[](https://travis-ci.org/YardiSystems/YSWebView)
[](http://cocoadocs.org/docsets/YSWebView/)
[](http://cocoadocs.org/docsets/YSWebView/)
[](https://www.apache.org/licenses/LICENSE-2.0.html)
YSWebView wraps a webview, [UIWebView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIWebView_Class/) or [WKWebView](https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKWebView_Ref/) based on the OS availability.
## How to get started
### install via CocoaPods
```ruby
platform :ios, '7.0'
pod 'YSWebView'
```
### example
```objectivec
#import
...
YSWebView *webView = [[YSWebView alloc] initWithFrame:frame];
[self.view addSubview:webview];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.yardi.com"]]];
OR
NSString *htmlString = @"
title
";
[webView loadHTMLString:htmlString baseURL:baseUrl];
```
## Requirements
- Xcode4 and above
- iOS 7.0 or above
## Author
- [Bogdan Hapca](bogdan.hapca@yardi.com)
## License
- YSWebView is available under the [MIT license](LICENSE).