JamesWebViewController
示例
要运行示例项目,请克隆仓库,然后在 Example 目录下首先运行 pod install
。
需求
安装
JamesWebViewController 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中
pod 'JamesWebViewController'
使用
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
let url = URL(string: "https://www.google.com")!
let webViewController = JamesWebViewController()
webViewController.webView.load(URLRequest(url: url))
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = webViewController
window?.makeKeyAndVisible()
return true
}
作者
mike, [email protected]
许可协议
JamesWebViewController 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。