Chapter 4

Writing Your First Hello World Application

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • Creating your index page
  • Adding styles
  • Programming the UI with JavaScript
  • Deploying your app

Okay, enough leg work. It’s time to start developing your first app. In this chapter, I walk you through the full start-to-finish process of developing your first Hello World app that runs on all IOS platforms — iPhone, iPad, and iPod touch.

Whenever you create a web app, you can decide whether you want to create everything on your own from scratch or if you want to leverage a framework to get the basic app look and feel. The advantage of creating everything yourself is that you have complete control over all parts of the app. The downside is, of course, that you have to create everything yourself.

Throughout this book, I talk a lot about creating different parts of an app on your own. However, to start things off, I recommend you use a mobile framework to get rolling quickly. Therefore, in this chapter, I utilize one of the popular mobile frameworks available for Web apps — jQueryMobile — to create an iPhone web app. Using jQueryMobile, you can focus on just the content and meat of the app itself and let the framework do much of the styling and interactivity for you.

SETTING UP

Before you can begin developing an application, you need to set up a place for your app on a remote web server or on a server on your development machine. Make sure the server can be accessed via Wi-Fi from an IOS device. ...

Get Beginning iOS Application Development with HTML and JavaScript® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.