iOS Core Frameworks DevelOp and DeSign Working with graphics, location, iCloud, and more Shawn Welch iOS Core Frameworks DevelOp and DeSign Working with graphics, location, iCloud, and more Shawn Welch iOS Core Frameworks: Develop and Design Shawn Welch Peachpit Press 1249 Eighth Street Berkeley, CA 94710 510/524-2178 510/524-2221 (fax) Find us on the Web at: www.peachpit.com To report errors, please send a note to errata@peachpit.com Peachpit Press is a division of Pearson Education Copyright © 2012 by Shawn Welch Editor: Nancy Peterson Production editor: Myrna Vladic Development editor: Margaret S Anderson/Stellarvisions Copyeditor and proofreader: Jan B Seymour Technical editor: Scott Fisher Cover design: Aren Howell Straiger Cover production: Jaime Brenner Interior design: Mimi Heft Compositor: David Van Ness Indexer: Jack Lewis Notice of Rights All rights reserved No part of this book may be reproduced or transmitted in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher For information on getting permission for reprints and excerpts, contact permissions@peachpit.com Notice of Liability The information in this book is distributed on an “As Is” basis, without warranty While every precaution has been taken in the preparation of the book, neither the author nor Peachpit Press 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 instructions contained in this book or by the computer software and hardware products described in it Trademarks iOS is a trademark of Apple Inc., registered in the United States and other countries Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and Peachpit Press was aware of a trademark claim, the designations appear as requested by the owner of the trademark All other product names and services identified throughout this book are used in editorial fashion only and for the benefit of such companies with no intention of infringement of the trademark No such use, or the use of any trade name, is intended to convey endorsement or other affiliation with this book ISBN 13: 978-0-321-80350-4 ISBN 10: 0-321-80350-7 Printed and bound in the United States of America To my brothers, Eric, Danny, and Kyle Welch Thank you for keeping me humble and reminding me of the humor in life Acknowledgments A book is one of those things that involves so many people besides the author listed on the cover This book would not exist without the hard work of all those individuals To all of the fine folks at Peachpit Press, thank you for your time and energy in this project Margaret Anderson, Nancy Peterson, and Jan Seymour read through my early writings and helped me turn them into the book you’re reading today Without their guidance and expertise in communication, this book would not have been possible I am truly blessed to have worked with such a solid, professional, and savvy team I hope to work again with all of them in the future Scott “Fish” Fisher, my tech editor, played an equally important role of double-checking my code samples to be sure they were accurate, simple, and to the point Thanks, Fish For people not directly involved in this book, I want to thank the folks at Flipboard for their help answering questions Also, thanks to Charles Ying for reading some early drafts and serving as a test audience You guys are a top notch team and I love your work As a side note, I wouldn’t be where I am today without the teaching efforts of Evan Doll and Alan Cannistraro Thank you, guys Finally, I would like to thank everyone over at Kelby Media Group and those who use my apps iOS is a platform that is ever changing For this reason I am constantly learning and applying knowledge to new apps Kelby Media Group, specifically Scott Kelby and Dave Moser, have offered me so many opportunities to continue to work with their team and perfect my craft To the fine users of NAPP who download my apps, thank you for your feedback Without users, an app developer’s life is pretty boring —Shawn Welch @shawnwelch s Unlimited online access to all Peachpit, Adobe Press, Apple Training and New Riders videos and books, as well as content from other leading publishers including: O’Reilly Media, Focal Press, Sams, Que, Total Training, John Wiley & Sons, Course Technology PTR, Class on Demand, VTC and more No time commitment or contract required! Sign up for one month or a year All for $19.99 a month Sign up today peachpit.com /creativeedge Join the PeachPit AffiliAte teAm! You love our books and you love to share them with your colleagues and friends why not earn some $$ doing it! If you have a website, blog or even a Facebook page, you can start earning money by putting a Peachpit link on your page If a visitor clicks on that link and purchases something on peachpit.com, you earn commissions* on all sales! Every sale you bring to our site will earn you a commission All you have to is post an ad and we’ll take care of the rest ApplY And get stArted! It’s quick and easy to apply To learn more go to: http://www.peachpit.com/affiliates/ *Valid for all books, eBooks and video sales at www.Peachpit.com