An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

YSWebView
=========
[![Build Status](http://img.shields.io/travis/YardiSystems/YSWebView/master.svg?style=flat)](https://travis-ci.org/YardiSystems/YSWebView)
[![Pod Version](http://img.shields.io/cocoapods/v/YSWebView.svg?style=flat)](http://cocoadocs.org/docsets/YSWebView/)
[![Pod Platform](http://img.shields.io/cocoapods/p/YSWebView.svg?style=flat)](http://cocoadocs.org/docsets/YSWebView/)
[![Pod License](http://img.shields.io/cocoapods/l/YSWebView.svg?style=flat)](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).