首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > JavaScript可可桥

JavaScript可可桥

  • 资源大小:517.85 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: javascript 可可

资 源 简 介

This project consists in a lightweight api for iPhone to call Objective-C code from Javascript in a UIWebView. A Javascript code is provided, which is able to communicate to an extension of Cocoa"s UIWebview. The JSBridge does not use any private api, and has a dependency on json framework for Objective-C. Download and add to your XCode project the files JSBridgeWebView.h, JSBridgeWebView.m and JSBridge.js. You will also need to add the JSON framework. Step-By-Step After embedding the code in your project, you need to hook up things. Here, I will try to give a quick step-by-step. Instanciate a new JSBridgeWebView and place it in whatever view you want. Implement the JSBridgeWebViewDelegate, and the method - (void)webView:(UIWebView*) webview didReceiveJSNotificationWithDictionary:(NSDictionary*) dictionary

文 件 列 表

JSBridge
Classes
html
JSBridge.xcodeproj
jsbridge
JSBridge_Prefix.pch
JSBridge-Info.plist
JSBridgeViewController.xib
main.m
MainWindow.xib
Classes
ImageViewerController.h
ImageViewerController.m
ImageViewerController.xib
JSBridgeAppDelegate.h
JSBridgeAppDelegate.m
JSBridgeViewController.h
JSBridgeViewController.m

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP