Chapter 18. Top Ten Apple Sample Applications (with Code!)

Good artists copy. Great artists steal.

Pablo Picasso

One way to really learn how to do things on the iPhone is to look at (correct) sample code. Apple provides a lot of it. The only problem with learning from samples is that, while it can show you how to do a specific thing (like flip a view), it doesn't give you the overall architectural understanding you need to create an application.

After going through this book, you know enough to take real advantage of all this sample code. By all means, take what you can from the samples and use it where you can to jumpstart your own application development.

Here are the ten samples I like the best. You can find them at the iPhone Dev Center Web site at http://developer.apple.com/iphone/ under the Sample Code section on the left side of the page.

They all come as Xcode projects, so you can check out the code, compile the project, and then load it into the simulator or even onto your development iPhone.

AppPrefs

If you want to get a good handle on preferences and how to set, access, and use them in your application, this is the place to get that grip. This app even has a table view with flip animation that explains the application on the flipside.

BubbleLevel

I can't help it. I love this application. It includes a lot of things any iPhone app developer would want to know how to do, including graphics and audio, and how to develop an application with a landscape view. It also allows you to ...

Get iPhone® Application Development For Dummies®, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.