professional iphone and ipad application development

602 300 0
professional iphone and ipad application development

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

www.it-ebooks.info www.it-ebooks.info PROFESSIONAL IPHONE AND IPAD APPLICATION DEVELOPMENT INTRODUCTION xxiii CHAPTER 1 Navigation 1 CHAPTER 2 Alerts, Action Sheets, and Modal Views . . . . . . . . . . . . . . . . . . . . . . . . . . 53 CHAPTER 3 Custom Table Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 1 CHAPTER 4 The Split View 1 37 CHAPTER 5 Touch Events 1 59 CHAPTER 6 Notification Processing 1 99 CHAPTER 7 Networking Concepts 227 CHAPTER 8 Multimedia 263 CHAPTER 9 Application Preferences 313 CHAPTER 10 Data Storage 339 CHAPTER 11 The Pasteboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395 CHAPTER 12 Unit Testing 429 CHAPTER 13 Performance Tuning and Optimization 453 CHAPTER 14 Integrating iAds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469 CHAPTER 15 Multitasking 48 1 APPENDIX A Your Initial App — First Steps 505 APPENDIX B iPhone Developer Center 51 5 APPENDIX C Cocoa Touch Static Libraries 52 1 APPENDIX D Apple Developer Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543 INDEX 547 www.it-ebooks.info www.it-ebooks.info PROFESSIONAL iPhone ® and iPadApplication Development www.it-ebooks.info www.it-ebooks.info PROFESSIONAL iPhone ® and iPadApplication Development Gene Backlin www.it-ebooks.info Professional iPhone® and iPad™ Application Development Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2011 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-87819-4 ISBN: 978-1-118-00834-8 (ebk) ISBN: 978-1-118-00835-5 (ebk) ISBN: 978-1-118-00706-8 (ebk) 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 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. 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 pro- motional 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 pub- lisher 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: 2010934751 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 affiliates, in the United States and other coun- tries, and may not be used without written permission. iPhone and iPad are trademarks or 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. www.it-ebooks.info This book is being dedicated to the family unit; past, present, and future. May it never lose sight of its existence. www.it-ebooks.info www.it-ebooks.info [...]... 398 398 398 Development Steps: Cutting and Pasting Text Test Your Application Cutting and Pasting Images Development Steps: Cutting and Pasting Images Test Your Application Creating Custom Menus for the iPad Development Steps: Creating Custom Menus for the iPad Test Your Application Summary 398 407 407 409 416 416 418 427 427 Chapter 12: Unit Testing 429 Setting Up the Environment Using an Application- Testing... Action Sheet for the iPhone or iPod Touch Test Your Application An Action Sheet for the iPad Development Steps: Creating an Action Sheet for the iPad Final Steps: Making the Connections Test Your Application Modal Views 68 80 80 81 93 95 95 Presenting and Dismissing the Modal View Transition Styles Modal Presentation Styles (iPad only) A Modal View for the iPhone and iPod Touch Development Steps: Creating... the application frameworks included in the SDK, and through a step-by-step process, you will design applications that help you understand these frameworks, including when and where they are to be incorporated into your application In this book, you will learn by doing, and when you’ve completed all the Development Steps sections, you will have experience creating and adding functionality to iPhone and. .. the iPhone and iPod Touch Test Your Application A Modal View for the iPad Development Steps: Creating a Modal View for the iPad Test Your Application Summary 95 95 95 95 96 105 106 108 119 119 Chapter 3: Custom Table Views Table Views 121 121 The Table View Cell The UITableViewDataSource Protocol The UITableViewDelegate Protocol A Custom Table View Application Development Steps: A Custom Table View Application. .. modular fashion, enabling you to extract it and implement the functionality in your own applications What This Book Covers The topics covered in this book use the current SDK 4.0 for iPhone and iPod Touch, and the SDK 3.2 for the iPad Xcode and Interface Builder are the main tools used to create all the applications presented Finally, with the Instruments application, performance issues are discussed... Library 265 265 265 266 291 291 Development Steps: An Application That Plays Video from the iPod Library 292 Test Your Application 312 Summary 312 Chapter 9: Application Preferences Application Configuration Guidelines for Application Preferences Preference Element Types Implementing Preference Hierarchies Accessing the Application s Preferences Setting Simple Preferences Development Steps: Setting Simple... C++, Java, and C# in various financial institutions and traveling the world in support of them Today he spends his weekends putting up infrastructure and develops mobile applications on Apple, Windows and Android as a hobby www.it-ebooks.info Credits Executive Editor Vice President and Executive Group Publisher Carol Long Richard Swadley Senior Project Editor Ami Frank Sullivan Vice President and Executive... Simple Application Using iAds Development Steps: A Simple Application Using iAds Test Your Application Summary 470 470 470 470 470 470 471 472 479 479 Chapter 15: Multitasking Multitasking Services 48 1 481 UIApplication Delegate Messages Multitasking Responsibilities Xcode Simulator Multitasking Limitations Device Support of Multitasking An Application That Multitasks Audio Development Steps: An Application. .. Action Sheets, and Modal Views Alerts 53 53 Alert View Design The UIAlertViewDelegate Protocol A Simple AlertView for the iPhone- iPod Touch and iPad Development Steps: Loading a File into a UITextView Test Your Application Action Sheets 54 54 54 55 66 66 Action Sheet Design The UIActionSheetDelegate Protocol www.it-ebooks.info 66 67 CONTENTS An Action Sheet for the iPhone- iPod Touch Development Steps:... 158 www.it-ebooks.info CONTENTS Chapter 5: Touch Events 159 Touch Event Handling 159 Single Touch Multi-Touch Taps Swipes and Gestures 160 160 160 161 A Simple Touch Handler 162 Development Steps: A Simple Touch Handler Test Your Application A Simple Gesture Recognizer Development Steps: A Simple Gesture Recognizer Test Your Application Summary 163 174 174 175 197 197 Chapter 6: Notification Processing . 547 www.it-ebooks.info www.it-ebooks.info PROFESSIONAL iPhone ® and iPad ™ Application Development www.it-ebooks.info www.it-ebooks.info PROFESSIONAL iPhone ® and iPad ™ Application Development Gene Backlin www.it-ebooks.info Professional. www.it-ebooks.info www.it-ebooks.info PROFESSIONAL IPHONE AND IPAD APPLICATION DEVELOPMENT INTRODUCTION xxiii CHAPTER 1 Navigation 1 CHAPTER 2 Alerts, Action Sheets, and Modal Views . . . . . . . a Modal View for the iPhone and iPod Touch 96 Test Your Application 105 A Modal View for the iPad 106 Development Steps: Creating a Modal View for the iPad 108 Test Your Application 119 Summary

Ngày đăng: 05/05/2014, 16:35

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan