【文件属性】:
文件名称:WebViewApp:WKWebview 显示h5 页面,与h5页面交互
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-15 13:52:18
Swift
WebViewApp
功能
调用显示h5页面
native与h5交互
长按识别 保存图片
调用打电话 发邮件功能
介绍:
调用方式:
let controller = PAWebViewController(urlString: "https://www.baidu.com")
controller.setWebView(title: "baidu.com", level: .document)
navigationController.pushViewController(controller, animated: true)
PAWebViewController介绍:
required init(urlString url:String?,allowsBackForwardNavigationGestures:Bool = true,nativeUrl:Url? = nil)
【文件预览】:
WebViewApp-master
----WebViewApp.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(15KB)
----README.md(2KB)
----WebViewApp()
--------Assets.xcassets()
--------webView()
--------Launch Screen.storyboard(5KB)
--------AppDelegate.swift(3KB)
--------Info.plist(1KB)