CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2017 |
Maintained by 123qweasdzxc.
DNWKWebViewController is a simple inline browser for your app.
This library is derived from SVWebViewController, which tries to build a webview controller with WKWebView.
DNWKWebViewController features:
setNetworkActivityIndicatorVisible
DNWKWebViewController/DNWKWebViewController
folder into your project.#import "DNWKWebViewController.h"
(see sample Xcode project in /Demo
)
Just like any UIViewController, DNWKWebViewController can be pushed into a UINavigationController stack:
DNWKWebViewController *webViewController = [[DNWKWebViewController alloc] initWithAddress:@"http://oopser.com"];
[self.navigationController pushViewController:webViewController animated:YES];
Starting in iOS 6 Apple uses UIActivity
to let you show additional sharing methods in share sheets. DNWKWebViewController
comes with "Open in Safari" and "Open in Chrome" activities. You can easily add your own activity by subclassing DNWKWebViewControllerActivity
which takes care of a few things automatically for you. Have a look at the Safari and Chrome activities for implementation examples. Feel free to send it as a pull request once you're done!
DNWKWebViewController is available under the MIT license. See the LICENSE file for more info.