“For those not ready to tackle the complexities of Objective-C, this is a great way to get started building iPhone apps. If you know the basics of HTML, JavaScript, and CSS, you’ll be building apps in no time.” —August Trometer, Owner of FoggyNoggin Software, www.foggynoggin.com Discover the Easier, Faster Way to Build High-Quality iPhone Applications Now, you don’t need to dive headfirst into Objective-C to write state-of-the-art applications for the iPhone. You can use web development tools and technologies you already know: JavaScript, HTML, and CSS. In this book, long-time web and mobile application developer Lee S. Barney shows you how to use the QuickConnect and PhoneGap frameworks to create secure, high-quality, modular hybrid iPhone applications. Lee S. Barney walks you through the entire hybrid iPhone development process, from creating great user interfaces to compiling, deploying, and executing applications. Along the way, he introduces techniques and sample code designed to streamline development, eliminate complexity, optimize performance, and leverage all iPhone’s native capabilities—from its accelerometer and GPS to its built-in database. Coverage includes Using Dashcode and Xcode together to create unique, exciting hybrid iPhone applications Using the QuickConnect JavaScript API to perform tasks ranging from vibrating the phone to accessing the accelerometer and GPS location data Accessing native iPhone functionality using the PhoneGap JavaScript API Storing, retrieving, and managing data on the iPhone, even without network access Using XMLHttpRequest to access or synchronize remote data and use web services Creating Google-based maps for your own app that work like those you see in the iPhone’s Maps application This book systematically lowers the barriers to iPhone development, enabling web developers to build any iPhone application they can imagine without long development cycles or steep learning curves!
Author(s): Lee S. Barney
Edition: 1
Publisher: Addison-Wesley Professional
Year: 2009
Language: English
Pages: 214
Table of Contents......Page 10
Preface......Page 14
Section 1: Using Dashcode and the Custom QuickConnect Template......Page 20
Section 2: Using Xcode and the Custom QuickConnect Template......Page 23
Section 3: Using Xcode and the Custom PhoneGap Template......Page 28
Section 4: Introduction to Basic Objective-C......Page 30
Section 5: Objective-C QuickConnectiPhone Application Structure......Page 33
Section 6: Objective-C PhoneGap Application Structure......Page 36
Section 7: Embedding Web Content: QuickConnectiPhone......Page 38
Section 8: Embedding Web Content: PhoneGap......Page 42
Summary......Page 43
Section 1: Modularity......Page 44
Section 2: The QuickConnect JavaScript Framework—A Modularity Example......Page 45
Section 3: The QuickConnectiPhone Implementation of the Modular Design......Page 53
Section 4: Business and View Application Controller Implementations......Page 57
Section 5: Error Application Controller Implementation......Page 61
Summary......Page 62
Section 1: Apple’s Human Interface Guide......Page 64
Section 2: List- and Browser-Based Interfaces......Page 67
Section 3: Nonlist-Based View Applications......Page 70
Section 4: Immersion Applications......Page 74
Section 5: Creating and Using Custom CSS Transforms......Page 76
Section 6: Using and Creating a Drag-and-Drop/Scale/Rotate Module......Page 83
Summary......Page 93
Section 1: JavaScript Device Activation......Page 94
Section 2: Objective-C Device Activation......Page 100
Section 3: Objective-C Implementation of the QuickConnectiPhone Architecture......Page 107
Summary......Page 113
Section 1: JavaScript Device Activation......Page 114
Section 2: Objective-C Device Activation......Page 121
Summary......Page 128
Section 1: Displaying a Map from Within Your QuickConnect JavaScript Application......Page 130
Section 2: Objective-C Implementation of the QuickConnect Mapping Module......Page 134
Summary......Page 145
Section 1: BrowserDBAccess Example Application......Page 146
Section 2: Using WebView SQLite Databases......Page 148
Section 3: Using Native SQLite Databases......Page 152
Section 4: Using the DataAccessObject with WebKit Engine Databases......Page 154
Section 5: Using the DataAccessObject with Native Databases......Page 164
Summary......Page 173
Section 1: BrowserAJAXAccess Example Application......Page 174
Section 2: Using the ServerAccessObject......Page 176
Section 3: ServerAccessObject......Page 181
Section 4: Security Control Functions......Page 190
Summary......Page 191
Section 1: Background......Page 192
Section 2: A JSON JavaScript API......Page 194
Summary......Page 197
B: The QuickConnectFamily Development Roadmap......Page 198
C: The PhoneGap Development Roadmap......Page 202
A......Page 206
D......Page 207
E......Page 208
I......Page 209
O......Page 210
Q......Page 211
S......Page 212
T......Page 213
X-Y-Z......Page 214