CrayWebViewController 0.7.7

CrayWebViewController 0.7.7

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2015年12月

azuakuraru维护。




  • azu

目的:易于使用的常用 UIWebViewController

img

  • 包含 WebView 的易于使用 ViewController。
    • 推送,模态,标签
  • 支持 iPad

安装

pod 'CrayWebViewController'

使用

查看示例。

pod try CrayWebViewController

基本 WebViewController(需要实现)

  1. CrayTabWebViewController 应用到 UIViewController 类。
  2. 将出口连接到 WebView 和代理。
  3. 设置 URL 属性或调用 - (void)goToAddress:(NSString *) URL;

独立的 WebViewController

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

img

action

CrayAllInOneBackWebViewController

它是 CrayStandaloneWebViewController 与返回按钮的组合。

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

场景

  1. 加载 URL*1
  2. 点击 URL
  3. 点击返回按钮 -> WebView 返回到 *1
  4. 点击返回按钮 -> [self.navigationController popViewControllerAnimated:YES];

模态 WebViewController

提供简单的模态 WebViewController

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

贡献

  1. 分支机构!
  2. 创建您的功能分支: git checkout -b my-new-feature
  3. 提交您的更改: git commit -am '添加某些功能'
  4. 将分支推送到: git push origin my-new-feature
  5. 提交拉取请求 :D

许可证

MIT