iPhone SDK Development - Pragmatic Bookshelfmedia.pragprog.com/titles/amiphd/introduction.pdfDevelopers of productivity and social networking applications will be able to use the Address
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
This PDF file contains pages extracted from iPhone SDK Development, published by thePragmatic Bookshelf. For more information or to purchase a paperback or PDF copy,
please visit http://www.pragprog.com.
Note: This extract contains some colored text (particularly in code listing). This isavailable only in online versions of the books. The printed versions are black and white.
Pagination might vary between the online and printer versions; the content is otherwise
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by anymeans, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their prod-
ucts are claimed as trademarks. Where those designations appear in this book, and The
Pragmatic Programmers, LLC was aware of a trademark claim, the designations have
been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, ThePragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g
device are trademarks of The Pragmatic Programmers, LLC.
Every precaution was taken in the preparation of this book. However, the publisher
assumes no responsibility for errors or omissions, or for damages that may result from
the use of information (including program listings) contained herein.
Our Pragmatic courses, workshops, and other products can help you and your team
create better software and have more fun. For more information, as well as the latest
• You have a computer capable of running the current iPhone SDK.
As of this writing, that means a Mac with an Intel CPU, running
Mac OS X Leopard 10.5.4 or later.1
• You are familiar with a “curly brace” programming language (C,
C++, C#, Java, Ruby, etc.) and with object-oriented programming
in general. If you’re primarily familiar with scripting languages
(JavaScript, ActionScript, PHP), then you may find some of the
iPhone’s programming practices challenging, but we hope not
insurmountable.
1.1 In This Book
We begin your journey with an introduction to the platform. We start
with a quick success in the form of a Hello World iPhone application.
Fresh on the heels of your first success, we dive into some of the funda-
mentals of the platform that you will need going forward. We cover the
basics of the tools (Xcode, Interface Builder) and Objective-C, which is
the language of Cocoa Touch development.
In the next four chapters, we look at view controllers and the views that
are integral to most iPhone applications. You’ll begin with a look at the
most generic views and view controllers and move to the UI metaphors
that are key to almost any iPhone application: tab bars, navigation, and
table views.
We recommend that you read these chapters no matter what sort of
iPhone application you are planning on building. You can then work
through the rest of the book in order, or you can pick and choose
according to your needs. We’ve grouped the remaining chapters into
roughly six sections.
If you need to persist data to your device, you’ll find four chapters
that cover the various techniques. We start with filesystem access and
options for saving and retrieving user preferences. Then we show two
approaches to using the built-in database: directly, with the SQLite API,
1. SDK requirements, particularly the minimum OS version, are highly likely to changegoing forward. Check http://developer.apple.com/iphone for the current specs.
The Pragmatic BookshelfThe Pragmatic Bookshelf features books written by developers for developers. The titles
continue the well-known Pragmatic Programmer style and continue to garner awards andrave reviews. As development gets more and more difficult, the Pragmatic Programmers
will be there with more titles and products to help you stay on top of your game.
Visit Us OnlineiPhone SDK Development’s Home Page
http://pragprog.com/titles/amiphd
Source code from this book, errata, and other resources. Come give us feedback, too!
Register for Updates
http://pragprog.com/updates
Be notified when updates and new books become available.
with our wiki, and benefit from the experience of other Pragmatic Programmers.
New and Noteworthy
http://pragprog.com/news
Check out the latest pragmatic developments, new titles and other offerings.
Buy the BookIf you liked this eBook, perhaps you’d like to have a paper copy of the book. It’s availablefor purchase at our store: pragprog.com/titles/amiphd.