Beginning iOS Game Center and Game Kit: For iPhone, iPad, and iPod touch
Copyright 2011 by Kyle Richter
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.
ISBN-13 (pbk): 978-1-4302-3527-9
ISBN-13 (electronic): 978-1-4302-35286
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
President and Publisher: Paul Manning
Lead Editor: Michelle Lowman
Development Editors: Matthew Moodie and Douglas Pundick
Technical Reviewer: Marcus Zarra
Editorial Board: Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, Jonathan
Gennick, Jonathan Hassell, Michelle Lowman, James Markham, Matthew Moodie, Jeff
Olson, Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic
Shakeshaft, Matt Wade, Tom Welsh
Coordinating Editor: Jennifer L. Blackwell
Copy Editor: Ralph Moore
Compositor: MacPS, LLC
Indexers: BIM Indexing & Proofreading Services
Artist: SPi Global
Cover Designer: Anna Ishchenko
Distributed to the book trade worldwide by Springer Science+Business Media, LLC., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com,
or visit www.springeronline.com.
For information on translations, please e-mail rights@apress.com,
or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk SaleseBook Licensing web page at www.apress.com/bulk-sales.
The information in this book is distributed on an as is basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress 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 information contained in this work.
The source code for this book is available to readers at www.apress.com.
This book is dedicated to my mentor and friend Ian Baird, without whom I never would have followed the path that led me to here.
Kyle
Contents at a Glance
Contents
About the Author
Kyle Richter started writing code in the early 90's on the Commodore 64, and soon after progressed to a Mac SE. Since then he has been dedicated to working exclusively with Apple products. In 2004 Kyle Richter founded Dragon Forged Software to release a new shareware title. Since that time Dragon Forged has grown into a much larger entity which now provides custom software and training. Dragon Forged was behind the release of the first iOS trivia game, as well as the first game to support true non-local multiplayer. He also worked on other popular iOS titles such as Handshake and Transactions. Kyle has devoted the last couple of years to managing Dragon Forged Software and writing custom software for corporations and startups. He is also a frequent speaker on software development and entrepreneurship at technology conferences and other events across the globe. Kyle is an outspoken supporter of the indie development community and spends a considerable amount of time moderating and contributing to various software development forums. In his spare time he enjoys traveling, nature, and sport shooting. He can be found on twitter @kylerichter.
About the Technical Reviewer
Marcus Zarra is the owner of Zarra Studios, where he builds Mac, iPhone, and iPad software for a wide variety of clients and customers. Outside of Apple, there are very few people with a better understanding of Core Data. He has not only written the book on Core DataCore Data: Apple's API for Persisting Data on Mac OSX (Pragmatic Bookshelf, 2009)he has also been doing iPhone, and now iPad, development as long as it has been possible to do so, and Mac programming for even longer. With Matt Long, Marcus is the co-author of the popular programming blog Cocoa Is My Girlfriend. Marcus is also a co-author (with Matt Long) of Core Animation: Simplified Animation Techniques for Mac and iPhone Development