SkillAgentSearch skills...

CrayWebViewController

Easy to use commonplace UIWebViewController.

Install / Use

/learn @akuraru/CrayWebViewController
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

CrayWebViewController

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

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated2y ago
Forks0

Languages

Objective-C

Security Score

70/100

Audited on Dec 15, 2023

No findings