JavaScriptCore Framework for iOS 7

I only stumbled across this by chance. Matt Neuburg mentions it in his latest book on Programming iOS 7 published by O'Reilly:

“New in iOS 7, your Objective-C code can load a JavaScript virtual machine and communicate back and forth between JavaScript and Objective-C. See Apple’s JavaScriptCore Framework Reference (currently documented only for OS X, not iOS). I don’t think this has anything to do with UIWebView per se, but it’s so cool that I couldn’t resist mentioning it.”

and this blog post goes into more detail. See also Apple's JavaScriptCore Framework guide for OS X, there is no guide for the iOS 7 implementation yet.

Update
Apple's explanation of the JavaScriptCore framework is as follows:

The JavaScript Core framework (JavaScriptCore.framework) provides Objective-C wrapper classes for many standard JavaScript objects. Use this framework to evaluate JavaScript code and to parse JSON data.

For information about the classes of this framework, see the header files.





Endorse on Coderwall

Comments