Latest 1.0.7
Homepage https://github.com/dushengjia/DQWebKit
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, Foundation
Authors

使用 WKWebView 实现 hybrid ,过滤重定向,锚点跳转,重复打开等,push 打开新页面

CocoaPods

pod "DQWebKit"

使用

import UIKit
import DQWebKit

class ViewController: UIViewController,DQWebViewControllerDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()

    }

    @IBAction func goWeb(_ sender: Any) {

        let webCtrl = DQWebViewController()
//        webCtrl.urlString = "http://m.liji.shop/APP_H5.html"//交互
        webCtrl.urlString = "https://github.com/dushengjia/DQWebKit/tree/master"//普通网页
        webCtrl.delegate = self
        self.navigationController?.pushViewController(webCtrl, animated: true)

    }

    //Mark: DQWebViewControllerDelegate
    func invoke(apiName: String, paramDic: Dictionary<String, Any>, webView: DQWebView, completion: @escaping (String?) -> Void) {
        debugPrint("000---apiName==(apiName)---paramDic==(paramDic)-")
        completion("")//有回调给 web 的内容从这里 给 web 没有也要给个空字符串不然会奔溃
    }

}

Latest podspec

{
    "name": "DQWebKit",
    "version": "1.0.7",
    "summary": "WKWebViewu7684u5c01u88c5uff0cu53efu4ee5u8fc7u6ee4u91cdu5b9au5411 uff0cu951au70b9u8df3u8f6cuff0cu91cdu590du8df3u8f6cu7b49uff0cu6a21u62dfu539fu751f push u52a8u753bu3002",
    "homepage": "https://github.com/dushengjia/DQWebKit",
    "license": "MIT",
    "authors": {
        "dushengjia": "[email protected]"
    },
    "social_media_url": "https://github.com/dushengjia",
    "requires_arc": true,
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "source": {
        "git": "https://github.com/dushengjia/DQWebKit.git",
        "tag": "v1.0.7"
    },
    "vendored_frameworks": "DQWebKit/DQWebKit.framework"
}

Pin It on Pinterest

Share This