Ucself / JGHybrid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JGHybrid

CI Status Version License Platform

Example

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

Requirements

JGWebKitURLProtocol

JGNavigationBarTransition

SSZipArchive

Installation

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

pod 'JGHybrid'

How To Use

iOS 全局配置

iOS API

H5 API

let vc:HybridViewController =  Hybrid.load(urlString: "http://web-qa.doctorwork.com/rapp/health/health-package/0?sku=HS2018002")!
self.navigationController?.pushViewController(vc, animated: true)
window.webkit.messageHandlers.requestHybrid.postMessage({
  name: "updateheader",
  param: {
    left: [{ tagname: "back", callback: "" }],
    right: [],
    title: { tagname: "title", title: "哈哈哈" }
  }
});

Author

ucself ,lbj147123@163.com

License

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

About

License:MIT License


Languages

Language:Swift 88.5%Language:HTML 9.2%Language:Ruby 1.7%Language:TypeScript 0.5%Language:Less 0.1%