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.
- Tutorial: Building An Interactive 3D Scene With Core Animation Step-By-Step
- Tutorial: iOS Multithreading With Grand Central Dispatch (GCD) Basics
- Tutorial: Getting Started With The iOS 7 Multipeer Connectivity API
- Your First App Store App Step-By-Step – Part 1
- Tutorial: Game Center Basics – Leaderboards And Achievements
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.




