Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments