ebook img

Safari and WebKit Development for iPhone OS 3.0 PDF

411 Pages·12.139 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Safari and WebKit Development for iPhone OS 3.0

Build dynamic mobile web Wagner Join the discussion @ p2p.wrox.com Wrox Programmer to Programmer™ applications for iPhone OS 3.0 S a With the unparalleled success of iPhone and iPod touch, iPhone OS 3.0 f has emerged as a compelling platform for which vast numbers of web a r developers are designing and building web-based mobile applications. i ® This book explores the Safari and WebKit development platform a that is built into iPhone OS 3.0 and takes you through the process n d of creating an iPhone web application from the ground up. You’ll learn how to use existing open source frameworks to speed up your wrox.com W development time, imitate qualities of built-in Apple apps, cache e data locally and even run in offline mode, and more. Whether you’re b Programmer K eager to build new web applications for iPhone OS 3.0 or optimize i Forums existing web sites for this platform, you have everything you need t to do so within these pages. Join our Programmer to D Programmer forums to ask e (cid:127) F eatures coverage completely compliant with the new iPhone OS 3.0 and answer programming v and the enhancements to the Safari/WebKit browser questions about this book, e join discussions on the l o (cid:127) S hows you how to design a user interface that is optimized for hottest topics in the industry, p iPhone’s touch-screen display and connect with fellow m programmers from around (cid:127) D etails the process of styling with CSS and reviews WebKit-specific the world. e n styles that are useful when developing web apps for iPhone and Code Downloads t iPhone touch f Take advantage of free code o (cid:127) P rovides a code-level look at developing an iPhone web application samples from this book, as r interface well as code samples from Safari® and WebKit i hundreds of other books, all P (cid:127) E xplains how web applications can integrate with core iPhone ready to use. h services, such as Phone, Email, and Google Maps™ o Read More n Development e Find articles, ebooks, sample Richard Wagner is a Senior Developer at Maark, LLC. He is an experienced web ® chapters and tables of contents designer and developer and the author of several web-related books that discuss O for hundreds of books, and the underlying technologies of the iPhone application platform. S more reference resources on programming topics that matter 3 for iPhone OS 3.0 Wrox guides are crafted to make learning programming languages and to you. . ® 0 technologies easier than you think. Written by programmers for programmers, they provide a structured, tutorial format that will guide you through all the techniques involved. Richard Wagner $44.99 USA Mobile & Web Site Development $53.99 CAN B IS Programmer to Programmer™ a P IS Get more out of a B IS a WROX.com Interact Chapters on Demand Take an active role online by participating in Purchase individual book chapters in pdf our P2P forums format Wrox Online Library Join the Community Hundreds of our books are available online Sign up for our free monthly newsletter at through Books24x7.com newsletter.wrox.com Wrox Blox Browse Download short informational pieces and Ready for more Wrox? We have books and code to keep you up to date and out of e-books available on .NET, SQL Server, Java, trouble! XML, Visual Basic, C#/ C++, and much more! Contact Us. We always like to get feedback from our readers. Have a book idea? Need community support? Let us know by e-mailing [email protected] Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. Safari® WebKit Development for iPhone® OS 3.0 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxi Chapter 1: Introducing Safari/WebKit Development for iPhone 3.0 . . . . . . . . . 1 Chapter 2: Working with Core Technologies . . . . . . . . . . . . . . . . . . . . . . . . . 15 Chapter 3: Building with Web App Frameworks . . . . . . . . . . . . . . . . . . . . . . . 61 Chapter 4: Designing a Usable and Navigable UI . . . . . . . . . . . . . . . . . . . . . . 97 Chapter 5: Styling with CSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Chapter 6: Programming the Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 Chapter 7: Handling Touch Interactions and Events . . . . . . . . . . . . . . . . . . . 185 Chapter 8: Programming the Canvas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 Chapter 9: Special Effects and Advanced Graphics . . . . . . . . . . . . . . . . . . . 221 Chapter 10: Integrating with iPhone Services . . . . . . . . . . . . . . . . . . . . . . . 239 Chapter 11: Offl ine Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265 Chapter 12: E nabling and Optimizing Web Sites for the iPhone and iPod Touch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285 Chapter 13: Bandwidth and Performance Optimizations . . . . . . . . . . . . . . . 311 Chapter 14: Packaging Apps as Bookmarks: Bookmarklets and Data URLs . 323 Chapter 15: Debug and Deploy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339 Chapter 16: The iPhone SDK: From Web App to Native App . . . . . . . . . . . . . 357 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369 Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. 4499666677ffffiirrss..iinndddd ii 1100//99//0099 88::0033::4411 AAMM Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. 4499666677ffffiirrss..iinndddd iiii 1100//99//0099 88::0033::4411 AAMM Safari® WebKit Development for iPhone® OS 3.0 Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. 4499666677ffffiirrss..iinndddd iiiiii 1100//99//0099 88::0033::4411 AAMM Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. 4499666677ffffiirrss..iinndddd iivv 1100//99//0099 88::0033::4411 AAMM Safari® WebKit Development for iPhone® OS 3.0 Richard Wagner Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. 4499666677ffffiirrss..iinndddd vv 1100//99//0099 88::0033::4411 AAMM Safari® WebKit Development for iPhone® OS 3.0 Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-54966-7 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permis- sion of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley .com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or war- ranties with respect to the accuracy or completeness of the contents of this work and specifi cally disclaim all warranties, including without limitation warranties of fi tness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. Library of Congress Control Number: 2009936392 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affi liates, in the United States and other countries, and may not be used without written permission. Safari and iPhone are registered trademarks of Apple, Inc. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book. Safari WebKit Development for iPhone OS 3.0 is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc. Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. 4499666677ffffiirrss..iinndddd vvii 1100//99//0099 88::0033::4411 AAMM To KimmyWags and the J-Team Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. 4499666677ffffiirrss..iinndddd vviiii 1100//99//0099 88::0033::4411 AAMM Prepared for STEPHEN EISEMAN/ email0 [email protected] Order number0 55771330 This PDF is for the purchaser’s personal use in accordance with the Wrox Terms of Service and under US copyright as stated on this book’s copyright page. If you did not purchase this copy/ please visit www.wrox.com to purchase your own copy. 4499666677ffffiirrss..iinndddd vviiiiii 1100//99//0099 88::0033::4411 AAMM

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.