O'Reilly logo

Learn HTML5 and JavaScript for iOS by Scott Preston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  15

Going Native with PhoneGap

You can do a lot with Mobile Safari, but there's always room for improvement. In particular you might want native controls or even want to take video or photos using your camera, but you can't do that with Mobile Safari. Enter PhoneGap.

PhoneGap was created at an iPhoneDevCamp in San Francisco in 2005.

I started using PhoneGap a few years ago and was amazed at how by just using JavaScript I could access all the basic functions I needed without knowing Objective-C. Basically PhoneGap renders your app using what's called a UIWebView. This allows a native app to basically render local HTML, CSS, and JavaScript files in a window using Mobile Safari while allowing access to all the native functions you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required