Building iPhone Apps with HTML, CSS, and JavaScript: Making App Store Apps Without Objective-C or Cocoa

Paperback
from $0.00

Author: Jonathan Stark

ISBN-10: 0596805780

ISBN-13: 9780596805784

Category: Personal Computers

What people are saying about Building iPhone Apps w/ HTML, CSS, and JavaScript\ "The future of mobile development is clearly web technologies like CSS, HTML and JavaScript. Jonathan Stark shows you how to leverage your existing web development skills to build native iPhone applications using these technologies."\ —John Allsopp, author and founder of Web Directions\ "Jonathan's book is the most comprehensive documentation available for developing web applications for mobile Safari. Not just...

Search in google:

What people are saying about Building iPhone Apps w/ HTML, CSS, and JavaScript "The future of mobile development is clearly web technologies like CSS, HTML and JavaScript. Jonathan Stark shows you how to leverage your existing web development skills to build native iPhone applications using these technologies."—John Allsopp, author and founder of Web Directions "Jonathan's book is the most comprehensive documentation available for developing web applications for mobile Safari. Not just great tech coverage, this book is an easy read of purely fascinating mobile tidbits in a fun colloquial style. Must have for all PhoneGap developers."— Brian LeRoux, Nitobi SoftwareIt's a fact: if you know HTML, CSS, and JavaScript, you already have the tools you need to develop your own iPhone apps. With this book, you'll learn how to use these open source web technologies to design and build apps for the iPhone and iPod Touch on the platform of your choice-without using Objective-C or Cocoa. Device-agnostic mobile apps are the wave of the future, and this book shows you how to create one product for several platforms. You'll find guidelines for converting your product into a native iPhone app using the free PhoneGap framework. And you'll learn why releasing your product as a web app first helps you find, fix, and test bugs much faster than if you went straight to the App Store with a product built with Apple's tools. Build iPhone apps with tools you already know how to use Learn how to make an existing website look and behave like an iPhone app Add native-looking animations to your web app using jQTouch Take advantage of client-side data storage with apps that run even when the iPhone is offline Hook into advanced iPhone features — including the accelerometer, geolocation, and vibration — with JavaScript Submit your applications to the App Store with Xcode This book received valuable community input through O'Reilly's Open Feedback Publishing System (OFPS). Learn more at http://labs.oreilly.com/ofps.html.

Preface xi1 Getting Started 1Web Apps Versus Native Apps? 1What Is a Web App? 1What Is a Native App? 1Pros and Cons 2Which Approach Is Right for You? 2Web Programming Crash Course 3Intro to HTML 3Intro to CSS 6Intro to JavaScript 92 Basic iPhone Styling 13First Steps 14Preparing a Separate iPhone Stylesheet 16Controlling the Page Scaling 17Adding the iPhone CSS 19Adding the iPhone Look and Feel 21Adding Basic Behavior with jQuery 23What You've Learned 283 Advanced iPhone Styling 29Adding a Touch of Ajax 29Traffic Cop 29Simple Bells and Whistles 34Roll Your Own Back Button 40Adding an Icon to the Home Screen 46Full Screen Mode 48Changing the Status Bar 48Providing a Custom Startup Graphic 49What You've Learned 504 Animation 51With a Little Help from Our Friend 51Sliding Home 51Adding the Dates Panel 55Adding the Date Panel 56Adding the New Entry Panel 58Adding the Settings Panel 60Putting It All Together 62Customizing jQ Touch 64What You've Learned 675 Client-Side Data Storage 69localStorage and sessionStorage 69Saving User Settings to localStorage 70Saving the Selected Date to sessionStorage 73Client-Side Database 74Creating a Database 75Inserting Rows 78Selecting Rows and Handling Result Sets 82Deleting Rows 86What You've Learned 896 Going Offline 91The Basics of the Offline Application Cache 91Online Whitelist and Fallback Options 94Creating a Dynamic Manifest File 98Debugging 102The JavaScript Console 103The Application Cache Database 107What You've Learned 1137 Going Native 115Intro to PhoneGap 115Usingthe Screen's Full Height 121Customizing the Title and Icon 123Creating a Startup Screen 130Installing Your App on the iPhone 131Controlling the iPhone with JavaScript 136Beep, Vibrate, and Alert 136Geolocacion 140Accelerometer 146What You've Learned 1508 Submitting Your App to iTunes 151Creating an iPhone Distribution Provisioning Profile 151Installing the iPhone Distribution Provisioning Profile 153Renaming the Project 155Prepare the Application Binary 156Submit Your App 157While You Wait 159Further Reading 159Index 161