Synopses & Reviews
This book covers the various aspects of developing web-based applications for iOS. Over the past four years, the iPhone and iPad have been amazingly successful. Because of this success, application developers are entering a world of sophisticated, multifunctional mobile applications. Now mobile web-based applications can bring together web apps, native apps, multimedia video and audio, and the mobile device itself. By using this book you will learn how to create a mobile application from beginning to end, utilizing open source frameworks to speed up development times, emulate the look and feel of built-in Apple applications, capture finger touch interactions, and optimize applications for Wi-Fi and wireless networks.
The book introduces you to the web application platform for iOS. It also guides you through the process of building new applications from scratch as well as migrating existing web applications to this new mobile platform. By doing this, the book helps readers design a user interface that is optimized for iOS touch-screen displays and integrate their applications with iPhone services, including Phone, Mail, Google Maps, and GPS.
This book is aimed at beginning and intermediate web developers who want to learn how to build new applications for iOS or migrate existing web apps to this platform. In general, you will find it helpful if you have a working knowledge of these technologies:
If you are less experienced working with these technologies, the early chapters of the book will help you.
Web developers with HTML/JS skills will quickly learn to apply them to the iPhone/iPad platform
Beginning to intermediate web developers who want to apply their existing HTML/CSS/JS/Ajax skills to the wildly popular iPhone/iPad OS will love this book. In the highly successful Wrox Beginning format, it enables developers who know these core technologies to use what they already know and get up to speed quickly. It introduces iOS development with web technologies, explains how to enable and optimize web sites for the iPhone and iPad, explores user interface design, then moves into animation, special effects, building with web frameworks, and much more.
- Explains how to enable and optimize web sites for the mobile screen, design an effective iPad and iPhone UI, and apply CSS
- Covers building in interactivity, animation, and special effects, programming the canvas, offline, apps, bandwidth performance and optimization, and web frameworks
- Shows you how to package your app inside a native iOS wrapper (no programming required) so you can submit your apps to the App Store
Transfer your existing skills to the iOS platform
Zeroes in on handling touch interactions, detecting an orientation change, and changing a style sheet when orientation changes
Explores animation, special effects, gradients, shadows and reflections, masks, and more
Demonstrates how to interact with native iPhone services
Addresses programming the canvas, building with web app frameworks, handling bandwidth and performance optimizations, and debugging and deploying
Shows how you can use PhoneGap to create a native iOS app
Highlights comparing the strengths of web apps and native apps
Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.
Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.
Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.
Find articles, ebooks, sample chapters and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.
About the Author
Richard Wagner is Lead Product Architect of Mobile/Web at Maark, LLC. He is an experienced web designer and developer and the author of several web-related books on the underlying technologies of the iPhone application platform.
Table of Contents
PART I: GETTING STARTED
CHAPTER 1: INTRODUCING IOS DEVELOPMENT USING WEB TECHNOLOGIES 3
CHAPTER 2: WORKING WITH CORE TECHNOLOGIES 15
CHAPTER 3: THE DOCUMENT OBJECT MODEL 47
CHAPTER 4: WRITING YOUR FIRST HELLO WORLD APPLICATION 65
CHAPTER 5: ENABLING AND OPTIMIZING WEB SITES FOR THE IPHONE AND IPAD 79
PART II: APPLICATION DESIGN
CHAPTER 6: DESIGNING THE IPHONE UI 99
CHAPTER 7: DESIGNING FOR IPAD 117
CHAPTER 8: STYLING WITH CSS 135
PART III: APPLICATION DEVELOPMENT
CHAPTER 9: PROGRAMMING THE INTERFACE 153
CHAPTER 10: HANDLING TOUCH INTERACTIONS AND EVENTS 189
CHAPTER 11: SPECIAL EFFECTS AND ANIMATION 207
CHAPTER 12: INTEGRATING WITH IOS SERVICES 223
CHAPTER 13: PACKAGING APPS AS BOOKMARKS: BOOKMARKLETS AND DATA URLS 235
PART IV: ADVANCED PROGRAMMING TECHNIQUES
CHAPTER 14: PROGRAMMING THE CANVAS 251
CHAPTER 15: OFFLINE APPLICATIONS 269
CHAPTER 16: BUILDING WITH WEB APP FRAMEWORKS 287
CHAPTER 17: BANDWIDTH AND PERFORMANCE
CHAPTER 18: DEBUG AND DEPLOY 317
CHAPTER 19: PREPARING FOR NATIVE IOS DEVELOPMENT 333
CHAPTER 21: SUBMITTING YOUR APP TO THE APP STORE 363
APPENDIX: EXERCISE ANSWERS 375