Tutorial: A Step-By-Step Guide On The Basics Of Using The JavaScriptCore Framework On iOS

I’ve mentioned the iOS JavascriptCore framework – the framework allowing you to directly utilize the same Javascript engine for WebKit.  Previously I pointed out a simple example, and a library to simplify working with JavascriptCore.

Here’s a step-by-step tutorial from Joseph Dixon that provides details on the basics of using JavascriptCore on the iOS platform in which you’ll build a simple contact management app using both Javascript and Objective-C.

Specifically you’ll learn how to:

– Get a JavascriptCore context (JSContext)
– Define and call Javascript functions
– Call your Objective-C code from Javascript
– Work with the JSContext of a UIWebView

You can find the tutorial over on the Big Nerd Ranch blog.

Example code on using JavascriptCore on iOS for the tutorial can be found on Github here.

A nice guide to utilizing JavascriptCore.

FacebookTwitterDiggStumbleUponGoogle Plus

Original article: Tutorial: A Step-By-Step Guide On The Basics Of Using The JavaScriptCore Framework On iOS

©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *