iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
xi_lin
V2EX  ›  iDev

有人用过 JavaScriptCore 来做 UIWebView 里 js 和 oc 的通信不?

  •  
  •   xi_lin · Apr 16, 2015 · 5655 views
    This topic created in 4218 days ago, the information mentioned may be changed or developed.
    如果使用这里
    http://stackoverflow.com/questions/18920536/why-use-javascriptcore-in-ios7-if-it-cant-access-a-uiwebviews-runtime

    的方法来获得JSContext的话,AppStore会不会被拒?看起来比用delegation方便很多
    10 replies  •  2015-04-17 20:01:14 +08:00
    wtl
    wtl
    Apr 16, 2015
    1
    不会
    xi_lin
    xi_lin
    OP
    Apr 16, 2015
    2
    @wtl 你是用的valueForKeyPath取的嘛?
    ETiV
    ETiV
    Apr 17, 2015 via iPhone
    3
    前天star了一个库是干这个的

    绕过webview的oc js通信。

    你可以搜搜「100个 objective-c github」,里面找
    heqichang
    heqichang
    Apr 17, 2015
    4
    不是说明了吗?
    Of course mine is also non-Apple-sanctioned, and could break also. I probably won’t try shipping this in an application to the App Store.
    rotoava
    rotoava
    Apr 17, 2015
    5
    我用过,好用,可以异步执行js。
    wayne1043
    wayne1043
    Apr 17, 2015
    6
    可以看看javascriptBridge
    xi_lin
    xi_lin
    OP
    Apr 17, 2015
    7
    @ETiV WebViewJavascriptBridge?看起来不是用的JavaScriptCore
    xi_lin
    xi_lin
    OP
    Apr 17, 2015
    8
    @rotoava 你是用哪种方式取得context的呢?
    xi_lin
    xi_lin
    OP
    Apr 17, 2015
    9
    @heqichang 就想问问有没有试过的~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1375 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 121ms · UTC 22:09 · PVG 06:09 · LAX 14:09 · JFK 17:09
    ♥ Do have faith in what you're doing.