The iPhone Developer?s Cookbook: Building Applications with the iPhone SDK
Product Description
This is the eBook version of the printed book. If the print book includes a CD-ROM, this content is not included within the eBook version.
“This book would be a bargain at ten times its price! If you are writing iPhone software, it will save you weeks of development time. Erica has included dozens of crisp and clear examples illustrating essential iPhone development techniques and many others that show special effects going way beyond Apple’s official documentation.”
—Tim Burks, iPhone Software Developer, TootSweet Software
“Erica Sadun’s technical expertise lives up to the Addison-Wesley name. The iPhone Developer’s Cookbook is a comprehensive walkthrough of iPhone development that will help anyone out, from beginners to more experienced developers. Code samples and screenshots help punctuate the numerous tips and tricks in this book.”
—Jacqui Cheng, Associate Editor, Ars Technica
“We make our living writing this stuff and yet I am humbled by Erica’s command of her subject matter and the way she presents the material: pleasantly informal, then very appropriately detailed technically. This is a going to be the Petzold book for iPhone developers.”
—Daniel Pasco, Lead Developer and CEO, Black Pixel Luminance
“The iPhone Developer’s Cookbook: Building Applications with the iPhone SDK should be the first resource for the beginning iPhone programmer, and is the best supplemental material to Apple’s own documentation.”
—Alex C. Schaefer, Lead Programmer, ApolloIM, iPhone Application Development Specialist, MeLLmo, Inc
“Erica’s book is a truly great resource for Cocoa Touch developers. This book goes far beyond the documentation on Apple’s Web site, and she includes methods that give the developer a deeper understanding of the iPhone OS, by letting them glimpse at what’s going on behind the scenes on this incredible mobile platform.”
—John Zorko, Sr. Software Engineer, Mobile Devices
The iPhone and iPod touch aren’t just attracting millions of new users; their breakthrough development platform enables programmers to build tomorrow’s killer applications. If you’re getting started with iPhone programming, this book brings together tested, ready-to-use code for hundreds of the challenges you’re most likely to encounter. Use this fully documented, easy-to-customize code to get productive fast—and focus your time on the specifics of your application, not boilerplate tasks.
Leading iPhone developer Erica Sadun begins by exploring the iPhone delivery platform and SDK, helping you set up your development environment, and showing how iPhone applications are constructed. Next, she offers single-task recipes for the full spectrum of iPhone/iPod touch programming jobs:
- Utilize views and tables
- Organize interface elements
- Alert and respond to users
- Access the Address Book (people), Core Location (places), and Sensors (things)
- Connect to the Internet and Web services
- Display media content
- Create secure Keychain entries
- And much more
You’ll even discover how to use Cover Flow to create gorgeous visual selection experiences that put scro…
Rating:
Sale Price:
Total Costumer Reviews:(42)
The iPhone Developer?s Cookbook: Building Applications with the iPhone SDK

The book states it is aimed “squarely at anyone just getting started with iPhone programming.” It is not.
At the time of purchase, I was a brand new iPhone developer with zero exposure to Apple’s developer tools and their iPhone SDK. That said, I am a very seasoned Java and C# developer, I have used Eclipse and VS.NET extensively for numerous years to build some very sophisticated applications. Apple’s developer tools, XCode and Interface Builder, are radically different tools unlike either of these development environments. Instead of a singular IDE, the Apple tools are a hodgepodge of separate applications filling your screen with a plethora of small tool and inspector windows. If you are brand new to XCode and Interface Builder, this book simply doesn’t have enough horse power to properly educate you on the pitfalls newbies will face.
If you are already familiar with Apple’s developer tools, then the book may be better received by you then by someone who had no exposure to them.
As a newbie you need to realize a very, very important point: copying code out of a book and into XCode is simply not enough to get a demo working out of this or any iPhone developer book! The trick is knowing how to “link” within Interface Builder- how to establish what I now know to be IBAction and IBOutlet property decorators. The IB stands for “Interface Builder” and these two markers provide “hints” from XCode to Interface Builder. For example, to “link” a button from Interface Builder to a property in XCode, the @property would have to be properly decorated (with IBOutlet) and then you must physically establish the link in Interface Builder, using a control-click-drag metaphor from source to destination. To my point- therein lies the problem with “recipe” books like this one- unless you already have a grasp on this concept and how it works (which I didn’t when I bought the book several weeks ago), this book will leave you very frustrated. You have verbatim code in XCode, but things don’t work! Worse, you have no idea why. [bang head on desk repeatedly here]
My recommendation is to look at the forthcoming book from the guys over at Pragmatic Programmer- iPhone SDK Development I purchased their book, and while it still left me to figure out some holes and some of the Interface Builder nuances, it was much more targeted for someone who has never used any of Apple’s developer tools. The Pragmatic book isn’t a panacea for all newbie problems, but it is far better suited then this “recipe” book.
I’m confident (well, hoping) that as my iPhone developer experiences grow and I become more accustomed to Apple’s developer tools, the recipes presented in this book might be of more value.
It is my opinion that its stated objective should have read “…squarely at anyone just getting started with iPhone programming who is already comfortable with the nuances of XCode, Interface Builder, and the other Apple developer tools.”
Rating:
The “Who This Book Is For” section of this book states: “This book is written for new iPhone developers with projects to get done and a new unfamiliar SDK in their hands.” I am rating this book three stars because it does not live up to this statement.
As someone familiar enough with Xcode and iPhone development to understand the Apple templates and Cocoa design patterns, I was sadly disappointed when I discovered that the code listings in this book were not separated into .m and .h files. Rather, all code is jumbled up into long single-file, multipage listings. The author even states that this format is suited for book publishing. I whole-heartedly feel that this single issue makes this book worthless to a new iPhone developer. Why? A newly created default iPhone project in Xcode has separate .h and .m files.
In addition to the above-mentioned flaw, this book does little beyond Chapter one to hand-hold a new iPhone developer. This book in not instructional at all in this regard and is only suited for those with several months or more of Xcode/iPhone SDK experience. That said, Chapter one contains incredibly detailed and well thought out introductory material, enough so that it may mislead you into thinking this book is for beginners. Chapter two jumps right into code without even explaining the bare essentials of Obj-C.
Furthermore, I think the lack of IB (Interface Builder) instruction will only confuse matters more. I equate this to coding in VB without The Visual Studio IDE.
It is clear, however, that Ms. Sadun knows what she is talking about when it comes to iPhone development. I give her credit for that. Unfortunately, her book comes off no clearer than Apple’s own documentation.
I recommend you look elsewhere if you are starting out as a brand-new iPhone developer.
Rating:
I’ve been working through this book since it came out and had to write a review. I’ll be short.
Pro’s: This is one of the first, and for awhile only books on the iPhone SDK available. It is written in a friendly manner, and if you understand Xcode and Object Oriented Programming, you’ll do OK.It does cover things more clearly than many of the code SDK snippet sites, and is often better organized.
Con’s: Boy, this thing was PUSHED out the door. There are many errors in the book that you’ll be able to fix yourself. Novices beware of keying in the examples. It may not be your typing that’s causing the error. The level of detail in the book jumps from highly precise to woefully lacking. Often on the same page. Many concepts and terms are used without any attempt to explain them.
Make sure you download the code samples from the author web site (ericasadun.com) they have been updated, commented, and actually compile. However, they often mix bad practices, like not breaking out headers, or naming things clearly, in with the code.
At this point in time (2008), this is a very valuable book, because there are so few good references out there. The second edition needs to be much more solid, or it will quickly be eclipsed by other books coming onto the market.
Rating:
I hoped for a good introduction in Iphone programming, but am disappointed. The book doesn’t conform to Cocoa programming standards which is very annoying. For example, all the Code is put in the ‘main’ file, not the way it should be. From a teaching perspective it’s confusing. Bits of code are presented without proper explanation to which class they belong and poor code evaluation. Perhaps no big deal for experienced iPhone programmers, but for starters like me very tedious to read. Dont expect a book with a quality like “Cocoa Programming for MAC OS X from Aaron Hillegass. If you’re starter wait for better books, This one won’t help you. It only teaches bad habbits.
Rating:
Erica Sadun is known for her iPhone reengineering since the beginning of (iPhone) time. This book sums up her experiences with iPhone programming, starting from the toolchain times. She shows a lot of tricks you won’t see in the standard books. But to really enjoy this book, you should know iPhone programming at least basically. This is NOT a methodical introduction for complete beginners, but a collection of iPhone programming concepts and gems for people who already understand the basics. So, if you buy this book to LEARN iPhone programming, you will certainly be disappointed. But if you buy this book to IMPROVE your iPhone programming skills, you will really like this book a lot.
Rating: