Pro iOS Web Design and Development: HTML5, CSS3, and JavaScript with Safari
Copyright 2011 by Andrea Picchi
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-4302-3246-9
ISBN-13 (electronic): 978-1-4302-3247-6
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
President and Publisher: Paul Manning
Lead Editor: Steve Anglin
Development Editor:Matthew Moodie
Technical Reviewer: Daniel Paterson
Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Morgan Engel, Jonathan
Gennick, Jonathan Hassell, Robert Hutchinson, Michelle Lowman, James Markham, Matthew Moodie, Jeff
Olson, Jeffrey Pepper, Douglas Pundick, Ben Renow-Clarke, Dominic Shakeshaft, Gwenan Spearing, Matt
Wade, Tom Welsh
Coordinating Editor: Adam Heath
Copy Editor: Ginny Munroe
Compositor: MacPS, LLC
Indexer: BIM Indexing & Proofreading Servies
Artist:SPi Global
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media, LLC., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail .
For information on translations, please e-mail .
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk SaleseBook Licensing web page at www.apress.com/bulk-sales
.
The information in this book is distributed on an as is basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work.
The source code for this book is available to readers at www.apress.com
. You will need to answer questions pertaining to this book in order to successfully download the code.
To my parents, Gianni and Carla, for their endless support.
To my fiance and Mia Principessa, Simona, source of strength, love, and will.
Andrea Picchi
Contents at a Glance
Contents
About the Author
With a background in psychology (University of Padova) and computer science (University of Pisa), Andrea Picchi started designing WebApps for the new Apple device in 2007 when the first iPhone was launched on the market. After the first release of the Apple SDK in 2008, he started developing Native Apps using Objective-C.
He also worked with the SimBin Development Team AB on the videogame RACE07The Official WTCC Game projectand supported the group's iPhone iUI Developers, iPhoneWebDev and iPhone Application Development course at Stanford University.
In recent years, Andrea Picchi has spoken at many important conferences around Europe, twice at the WhyMCA Mobile Developer Conference with a talk on The Cognitive Paradigm of Touch-Screen Devices and another on A Cognitive Approach to the User-Centered Design for Mobile Design and Development. He also spoke at IASummit with a speech on Cognitive Design and Optimization of Touch-Screen Interfaces and at UXConference with a speech on Cognitive Optimization of Mobile Touch Contexts.
In 2011 he also started to teach iOSWebApps in a course also available on iTunesU and Mobile Device Development in a first-level Master, both organized by the Computer Science Department of the University of Pisa.
Today, as a mobile project manager, his priority has been to implement a cognitive approach to touch-screen interface design in both mobile and ubiquitous computing contexts. He also continues his work designing and developing for iOS with both the web model (using HTML5, CSS3, JavaScript) and SDK model (using Cocoa-Touch in Objective-C).
About the Technical Reviewer
Daniel Paterson has a master's degree in comparative literature, and he penned a memoir on integrating literary theory into fictional works, taking novels by Umberto Eco, Milan Kundera, and David Lodge as examples. After his university years, Daniel entered web development and joined Newsweb/Lagardre Active in April 2009. Passionate about the Web as about many other things, he enjoys every opportunity to work on interesting projects and to develop his skills.
Acknowledgments
This book could not have been written without the fine folks at Apress.
Steve Anglin, who started everything rolling by contacting me and offering this great opportunity. Thanks, Steve. Adam Heath, who managed the project, and Kelly Moritz, who organized my schedule and deadlines. The development editor, Matthew Moodie, and the technical reviewer, Daniel Paterson, who drew on their experience to show me how to turn something good into something great.
A very special thanks to Carl Willat and Clay Andres.
Carl Willat worked with me on the project from day one. Carl read and reviewed everything I wrote in this book and helped me to explain all my ideas in more elegant and correct form.