Late last month I mentioned an excellent collection of beginner Phonegap tutorials explaining how to get started with Phonegap, and covering how to program native functionality including maps, the camera, and the accelerometer.
Today I came across a very interesting plugin for Cordova (Phonegap) v1.5 that provides direct access to native iOS controls from within your Phonegap apps. Not only that, but you can use the SpiderMonkey Javascript engine instead of a UIWebView, and all the Javascript is done using CoffeeScript.
Only a single line of code is needed to load all the Javascript required by the plugin.
Here’s a screenshot taken from the Github page showing some example user interfaces created using the plugin:
The plugin is known as Cordova True Native iOS Matthew Schulkind and can be found on Github here.
This will of course only work on the iOS platform – which may not be appealing if you are using Phonegap for it’s cross-platform capability. However, it’s great if you want a true native user interface look and feel while still working with your Javascript code base.
©2012 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.







