Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Fogh/AFWebViewController

Repository files navigation

AFWebViewController

Pod version Pod platform Build Status

In-app browser

For apps targeting iOS 9 and greater you should be using SFSafariViewController.

Description

In-app browser for quick implementation in your app. Pretty much inspired by SVWebViewController. Uses WKWebView for a much faster browsing experience.

Requires iOS 8+

Installation with CocoaPods

Install with CocoaPods and import AFWebViewController.h or AFModalWebViewController.h where you want to use it.

Podfile

platform :ios, '8.0'
pod 'AFWebViewController', '~> 1.0'

Usage example

Push AFWebViewController:

AFWebViewController *webViewController = [AFWebViewController webViewControllerWithAddress:@"https://google.com"];
webViewController.toolbarTintColor = [UIColor orangeColor]; // Does not work on iPad
[self.navigationController pushViewController:webViewController animated:YES];

Modal AFWebViewController:

AFModalWebViewController *webViewController = [AFModalWebViewController webViewControllerWithAddress:@"https://google.com"];
webViewController.barsTintColor = [UIColor redColor];
webViewController.toolbarTintColor = [UIColor orangeColor]; // Does not work on iPad
[self presentViewController:webViewController animated:YES completion:NULL];
``
## Other iOS open source projects by me
- [AFAddressBookManager](https://github.com/Fogh/AFAddressBookManager)
- [AFMobilePayRequestHandler](https://github.com/Fogh/AFMobilePayRequestHandler)

About

In-app browser that uses WKWebView

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /