CrayWebViewController
Easy to use commonplace UIWebViewController.
Install / Use
/learn @akuraru/CrayWebViewControllerREADME
CrayWebViewController
Purpose: Easy to use commonplace UIWebViewController

- Easy to use ViewController which contain WebView.
- Push , Modal, Tab
- Support iPad
Installation
pod 'CrayWebViewController'
Usage
See Example.
pod try CrayWebViewController
Basic WebViewController(needed implement)
- Apply
CrayTabWebViewControllerto UIViewController class. - connect Outlet to WebView and delegate.
- set
URLproperty or call- (void)goToAddress:(NSString *) URL;
Standalone WebViewController
CrayStandaloneWebViewController *controller = [CrayStandaloneWebViewController webViewController];
controller.URL = @"https://google.com";
[self.navigationController pushViewController:controller animated:YES];


CrayAllInOneBackWebViewController
It's CrayStandaloneWebViewController + hook back button.
CrayAllInOneBackWebViewController *controller = [CrayAllInOneBackWebViewController webViewController];
controller.URL = @"https://google.com";
[self.navigationController pushViewController:controller animated:YES];
Scenario
- Load URL*1
- Click URL
- Press BackButton -> WebView goes to back*1
- Press BackButton ->
[self.navigationController popViewControllerAnimated:YES];
Modal WebViewController
Provide simple Modal WebViewController
NSString *url = @"https://google.com";
[CrayModalWebViewController showFromViewController:self URL:url];
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT
