CrayWebViewController 0.7.7

CrayWebViewController 0.7.7

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2015

Maintained by azu, akuraru.




  • By
  • azu

Purpose: Easy to use commonplace UIWebViewController

img

  • 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)

  1. Apply CrayTabWebViewController to UIViewController class.
  2. connect Outlet to WebView and delegate.
  3. set URL property or call - (void)goToAddress:(NSString *) URL;

Standalone WebViewController

CrayStandaloneWebViewController *controller = [CrayStandaloneWebViewController webViewController];
controller.URL = @"https://google.com";
[self.navigationController pushViewController:controller animated:YES];

img

action

CrayAllInOneBackWebViewController

It's CrayStandaloneWebViewController + hook back button.

CrayAllInOneBackWebViewController *controller = [CrayAllInOneBackWebViewController webViewController];
controller.URL = @"https://google.com";
[self.navigationController pushViewController:controller animated:YES];

Scenario

  1. Load URL*1
  2. Click URL
  3. Press BackButton -> WebView goes to back*1
  4. Press BackButton -> [self.navigationController popViewControllerAnimated:YES];

Modal WebViewController

Provide simple Modal WebViewController

NSString *url = @"https://google.com";
[CrayModalWebViewController showFromViewController:self URL:url];

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT