Thursday, October 4, 2012

iPhone Application Development All-in-One For Dummies pdf download

iPhone Application Development All-in-One For Dummies

iPhone Application Development All-in-One For Dummies Published by Wiley Publishing, Inc.iPhone Application Development All-in-One For Dummies 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada 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 permission 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. Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, Making Everything Easier, 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. iPhone is a registered trademark 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. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS 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 WEBSITE 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 WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES 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 U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit www.wiley.com/techsupport. 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: 2010924562 ISBN: 978-0-470-54293-4 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1

Contents at a Glance iPhone Application Development All-in-One For Dummies

Introduction ................................................................ 1 Book I: Creating the Killer App ..................................... 9 Chapter 1: What Makes a Killer iPhone App ................................................................11 Chapter 2: Creating a Compelling User Experience ....................................................25 Chapter 3: Enlisting in the Developer Corps ................................................................43 Chapter 4: Getting to Know the SDK .............................................................................57 Chapter 5: Looking Behind the Screen ..........................................................................77 Chapter 6: Death, Taxes, and iPhone Provisioning .....................................................95 Chapter 7: The App Store Is Not Enough ....................................................................117 Book II: Objective-C and iPhone Technologies ............ 133 Chapter 1: Using Objective-C's Extensions to C for iPhone Development .............135 Chapter 2: The Real Truth about Object-Oriented Programming ...........................167 Chapter 3: Digging Deeper Into Objective-C ...............................................................195 Chapter 4: Leveraging the Foundation Framework in Your App .............................227 Chapter 5: Getting Other Objects to Do Your Work for You ....................................257 Book III: Building a Utility App — DeepThoughts ...... 269 Chapter 1: Understanding How an App Runs .............................................................271 Chapter 2: Understanding the User Interface Controls ............................................287 Chapter 3: Developing the Main View .........................................................................305 Chapter 4: Developing the Flipside Controls .............................................................319 Chapter 5: Extending Your App with a Photo View ...................................................351 Book IV: Debugging and Tuning Your Application....... 379 Chapter 1: Using the Xcode Debugger ........................................................................381 Chapter 2: Tuning Your Code Using Xcode's Instruments Application ..................401 Book V: Building an Industrial Strength Application — RoadTrip! ......................................... 425 Chapter 1: Designing Your Application .......................................................................427 Chapter 2: Setting the Table .........................................................................................439 Chapter 3: Navigating ....................................................................................................467 Chapter 4: Creating Controllers and Model Classes .................................................495 Chapter 5: Finding Your Way .......................................................................................531 Chapter 6: Geocoding and Reverse Geocoding ..........................................................555 Book V I: Storing and Accessing Data ........................ 577 Chapter 1: Show Me the Data .......................................................................................579 Chapter 2: A More Flexible Generic Controller ..........................................................619 Chapter 3: Working the URL Loading System ............................................................635 Chapter 4: Setting Up Core Data ..................................................................................669 Chapter 5: Putting Core Data to Work .........................................................................705 Book V II: Extending the App to the Realm of Ultracool ................................................... 739 Chapter 1: A User Interface for Adding Hotels and Using the Address Book ........741 Chapter 2: Incorporating E-Mail: Postcards from the Road .....................................787 Chapter 3: Are We There Yet? ......................................................................................805 Index ...................................................................... 823

Introduction iPhone Application Development All-in-One For Dummies

When Apple introduced the iPhone Software Development Kit (SDK) in 2008, the iPhone and iPod touch suddenly became the handheld computers they were meant to be. Interest in the SDK exceeded Apple's expectations — in fact, Apple's servers supplying the beta for the first SDK download were overwhelmed. Since then, the App Store has grown to become the repository of over 140,000 applications, which collectively are driving innovation beyond the reach of other mobile devices. The success of the App Store — over three billion downloads — has turned the iPhone into the premier mobile device for publishing software. All the leading mobile applications typically appear on the iPhone first, and as a reader of this book, you may be creating the next one. As I continue to explore the iPhone as a new platform, I keep finding more possibilities for applications that never existed before. The iPhone or iPod touch is a mobile computer, but not like a mobile desktop. Its hardware and software make it possible to wander the world, or your own neighborhood, and stay connected to whomever and whatever you want to. It enables a new class of here-and-now applications that give you access to content-rich services and let you view information about what's going on around you and where you are, and interact with those services or with others on the Internet. One of the hallmarks of a great iPhone application is that it leverages the iPhone's unique hardware, especially its ability to know where the user is. The iPhone SDK includes tools such as MapKit, which makes it much easier to use the location-based features of the iPhone in an application. MapKit makes it possible for even a beginning developer to take full advantage of the location hardware, and I've included the code for an example app (called RoadTrip) to show you how. And the frameworks supplied in the SDK are especially rich and mature. All you really have to do is add your application's user interface and functionality to the framework, and then "poof" . . . an instant application. If you're familiar with the first version of the SDK, you're in for a pleasant surprise: The latest version of the SDK, which includes Xcode 3.2.2, is a lot, lot better and easier to use. What's really hard, after you've learned your way around the SDK and its various framework, is figuring out how to create a structure for the iPhone application's data and models for the logic of how the application should work. Although there are lots of resources, the problem is exactly that: There are lots of resources — as in thousands of pages of documentation! You may get through a small fraction of the documentation before you just can't take it anymore and plunge right into coding. Naturally enough, there will be a few false starts and blind alleys until you find your way, but I predict that after reading this book, it will be (pretty much) smooth sailing. That's why, when the For Dummies folks asked me to combine all the knowledge and wisdom I could muster to write these minibooks on developing software for the iPhone, I jumped at the chance. Here's the definitive tome that I wish I had for a reference myself when I started developing iPhone software. Editor's note: Both authors (Tony and Neal) have published applications for the iPhone — you can find several of Neal's apps, including ReturnMeTo, in the App Store, along with Tony's app, Tony's Tips for iPhone Users. iPhone Application Development All-in-One For Dummies
Read more... http://www.fordummiespdf.com/iphone-application-development-all-in-one-for-dummies-pdf-download/

No comments:

Post a Comment