Purpose: Easy to use commonplace UIWebViewController
- Easy to use ViewController which contain WebView.
- Push , Modal, Tab
- Support iPad
pod 'CrayWebViewController'
See Example.
pod try CrayWebViewController
- Apply
CrayTabWebViewController
to UIViewController class. - connect Outlet to WebView and delegate.
- set
URL
property or call- (void)goToAddress:(NSString *) URL;
CrayStandaloneWebViewController *controller = [CrayStandaloneWebViewController webViewController];
controller.URL = @"https://google.com";
[self.navigationController pushViewController:controller animated:YES];
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];
Provide simple Modal WebViewController
NSString *url = @"https://google.com";
[CrayModalWebViewController showFromViewController:self URL:url];
- 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
MIT