cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian LeRoux...@brian.io>
Subject Re: [iOS] Objective-C object binding to UIWebWiew's JavaScriptCore
Date Sat, 19 Apr 2014 01:38:29 GMT
This is awesome.
On Apr 18, 2014 12:02 PM, "Shazron" <shazron@gmail.com> wrote:

> Note: iOS 7 only.
>
> Two ways to grab the JSContext:
> 1. Through KVC of the UIWebView object and key
> "documentView.webView.mainFrame.javaScriptContext" [1]
> 2. Create a NSObject category for selector
> "webView:didCreateJavaScriptContext:forFrame:" [2]
>
> Usual caveats apply to whether any of these methods is acceptable for the
> App Store.
>
> [1]
>
> http://blog.impathic.com/post/64171814244/true-javascript-uiwebview-integration-in-ios7
> [2] https://github.com/TomSwift/UIWebView-TS_JavaScriptContext
>

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message