Latest 0.1.0
Homepage https://github.com/jtans/JTSWebViewBridge
License MIT
Platforms ios 8.0, requires ARC
Dependencies WebViewJavascriptBridge
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

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

pod 'JTSWebViewBridge'

How to use

  1. See ExampleProject. Make class ShowMessageHandler(named what you like) implement JTSWebViewJSHandler

import <JTSWebViewBridge/JTSWebViewJSHandler.h>

@interface ShowMessageHandler : JTSWebViewJSHandler

  • (void)testObjcCallback:(JTSWebViewJSHandlerParameter *)param;

  • (void)showMsg:(JTSWebViewJSHandlerParameter *)param;

@end


2. add a plist to your project named `wvbridge.plist`
``` xml
<plist version="1.0">
<dict>
<key>ShowMessageHandler</key>
<array>
<string>testObjcCallback</string>
<string>showMsg</string>
</array>
</dict>
</plist>

Author

jtans, jtans

License

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

Latest podspec

{
    "name": "JTSWebViewBridge",
    "version": "0.1.0",
    "summary": "A aop extension of WebViewJavascriptBridge.",
    "description": "a aop extension Framework for WebViewJavascriptBridge.Modify close,extend open.",
    "homepage": "https://github.com/jtans/JTSWebViewBridge",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "jtans": "jtans"
    },
    "source": {
        "git": "https://github.com/jtans/JTSWebViewBridge.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "JTSWebViewBridge/Classes/**/*",
    "public_header_files": "JTSWebViewBridge/Classes/**/*.h",
    "dependencies": {
        "WebViewJavascriptBridge": []
    }
}

Pin It on Pinterest

Share This