Latest 3.0.0
Homepage https://github.com/Ucself/JGHybrid
License MIT
Platforms ios 8.0
Dependencies SSZipArchive, Kingfisher, JGWebKitURLProtocol
Frameworks UIKit, WebKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

JGHybrid is available through CocoaPods. To install
it, simply add the following line to your Podfile:

此类库在caiyang基础上新增js注入功能
https://github.com/suncry/MLHybrid

pod 'JGHybrid'

How To Use

MLHybrid.register(sess: "GuU7KeV154f8juslkNWRONyVE3m8Sq9h5nJFpcARiCFIvrMsp6boxDzcYabBwAoM",
                  platform: "i",
                  appName: "medlinker",
                  domain: "medlinker.com",
                  backIndicator: "hybridBack",
                  delegate: MethodExtension())

let vc:UIViewController =  MLHybrid.load(urlString: "https://yexiaochai.github.io/Hybrid/webapp/demo/index.html")!
self.navigationController?.pushViewController(vc, animated: true)

“` js执行命令
window.webkit.messageHandlers.requestHybrid.postMessage({‘name’:’updateheader’,’param’:{"left":[{"tagname":"back","callback":""}],"right":[],"title":{"tagname":"title","title":"哈哈哈"}}})


## Author

[email protected], [email protected]

## License

JGHybrid is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JGHybrid",
    "version": "3.0.0",
    "summary": "A short description of JGHybrid.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/Ucself/JGHybrid",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Ucself/JGHybrid.git",
        "tag": "3.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "JGHybrid/Classes/**/*",
    "frameworks": [
        "UIKit",
        "WebKit"
    ],
    "dependencies": {
        "SSZipArchive": [],
        "Kingfisher": [],
        "JGWebKitURLProtocol": []
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This