O'Reilly logo

PhoneGap by Andrew Lunny

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

Time for action – You Are The Best for iPhone

We're going to build You Are The Best for iPhone now, but if you followed Chapter 1, Installing PhoneGap, you shouldn't see any surprises if you want to build to something else first:

  1. Launch XCode and create a new PhoneGap-based project, YouAreTheBest, in a safe location.
  2. Copy our YouAreTheBest assets into that project's www directory.
  3. Hit Build and Run to launch the iPhone simulator:
    Time for action – You Are The Best for iPhone
  4. Not bad, but a couple of things stand out right away—the scale is way off, and the alert should be from YouAreTheBest, not from index.html.
  5. Firstly, let's deal with the scale of the application. Mobile web views typically have ...

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