Contents
List of Figures
List of Tables
Pages
Guide
Beginning iOS Programming
Building and Deploying iOS Applications
Nick Harris
Beginning iOS Programming: Building and Deploying iOS Applications
Published by
John Wiley & Sons, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright 2014 by John Wiley & Sons, Inc., Indianapolis, Indiana
Published simultaneously in Canada
ISBN: 978-1-118-84147-1
ISBN: 978-1-118-84160-0 (ebk)
ISBN: 978-1-118-84144-0 (ebk)
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 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 publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com.
Library of Congress Control Number: 2013958293
Trademarks: Wiley, the Wrox logo, 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 countries, and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated with any product or vendor mentioned in this book.
This book is dedicated to my mom, dad, and sister for always believing in me.
ABOUT THE AUTHOR
NICK HARRIS is an independent software developer at Clifton Garage Mobile LLC. After graduating from the Russ College of Engineering at Ohio University in 2001 with a Bachelor of Science degree in computer science, he relocated to Denver, Colorado, where he began his professional career. Nick began developing for iPhone in 2008 with the release of the iPhone SDK and has created and released more than a half dozen apps using every version of iOS through iOS 7. Along with his accomplishments as a developer, Nick enjoys giving back to the developer community by speaking at conferences such as the 360iDev Developer Conference, as well as helping sponsor events including iOSDevCamp Colorado. Contact Nick at .
CREDITS
Acquisitions Editor
Mary James
Project Editor
Ami Sullivan
Technical Editor
Kyle Richter
Production Editor
Daniel Scribner
Copy Editor
San Dee Phillips
Editorial Manager
Mary Beth Wakefield
Freelancer Editorial Manager
Rosemarie Graham
Associate Director of Marketing
David Mayhew
Marketing Manager
Ashley Zurcher
Business Manager
Amy Knies
Vice President and Executive Group Publisher
Richard Swadley
Associate Publisher
Jim Minatel
Project Coordinator, Cover
Todd Klemme
Proofreader
Mark Steven Long
Indexer
Robert Swanson
Cover Designer
Wiley
Cover Image
iStockphoto.com/photka
ACKNOWLEDGMENTS
WHEN THE ORIGINAL IPHONE was frst released, I thought my friends who lined up and waited hours to buy one were crazy. Who would spend that much money on a phone? It wasnt until Apple announced the iPhone SDK that my mind began to change. Finally, I decided to take the plunge and headed to the local AT&T store. I felt guilty for spending so much money until I got home and started to actually use my new iPhone. I was amazed! I had to learn how to write my own apps.
Five years later Im still amazed at the developer community that grew up around what has become iOS development. I have met so many great people who taught me not only how to create iOS apps but also how important it is to give back to the community. This book is partially to teach the next crop of iOS developers as well as to thank and honor all those who helped me along the way. There are too many to name individually and I would hate to miss someone, but you all know who you are.
I would also like to thank my acquisition editor, Mary James. I had always wanted to write a book but didnt know where to start. Mary was instrumental in getting the ball rolling and making this book a reality. Ami Sullivan, who was my project editor, also deserves a huge thank-you. Being a frst-time author, I really had no idea what to expect. Ami has been a great coach, helping me get everything done well and on time while also helping encourage me to keep going when the work seemed overwhelming. Next, Id like to thank my copy editor, San Dee Phillips, for catching all my grammatical errors and making sure the ideas Ive tried to explain make sense.
I owe a big thank you to my technical editor, Kyle Richter, for finding all my technical errors and pointing out ways to make the code for this book easy to understand for all readers. Kyle also helped me put the original book proposal together and has given me extremely valuable advice. Many thanks.
Finally, a huge thank-you to my parents and sister for all their encouragement along the way. I dont think I could ever express how much I appreciate it.