Head First iPhone Development: A Learner's Guide to Creating Objective-C Applications for the iPhone

Head First iPhone Development: A Learner's Guide to Creating Objective-C Applications for the iPhone

Dan Pilone, Tracey Pilone

Language: English

Pages: 560

ISBN: 0596803540

Format: PDF / Kindle (mobi) / ePub

Let's say you have an idea for a killer iPhone app. Where do you begin? Head First iPhone Development will help you get your first application up and running in no time. You'll quickly learn to use iPhone SDK tools, including Interface Builder and Xcode, and master Objective-C programming principles that will make your app stand out. It's a complete learning experience for creating eye-catching, top-selling iPhone applications.

  • Put Objective-C core concepts to work, including message passing, protocols, properties, and memory management
  • Take advantage of iPhone patterns such as datasources and delegates
  • Preview your applications in the iPhone Simulator
  • Build complicated interactions that utilize multiple views, data entry/editing, and iPhone rotation
  • Work with iPhone's camera, GPS, and accelerometer
  • Optimize, test, and distribute your application

We think your time is too valuable to waste struggling with new concepts. Using the latest research in cognitive science and learning theory to craft a multi-sensory learning experience, Head First iPhone Development provides a visually-rich format designed for the way your brain works, not a text-heavy approach that puts you to sleep.

jQuery Pocket Reference

Introducing Erlang

Learn to Program with Scratch: A Visual Introduction to Programming with Games, Art, Science, and Math

KnockoutJS Starter

Programming C# 5.0: Building Windows 8, Web, and Desktop Applications for the .NET 4.5 Framework

Beginning iPhone 3 Development: Exploring the iPhone SDK



















to the world (and maybe make some money, too!). We’ll talk more about distributing apps later in the book. Q: Can I develop an app for the iPhone then rebuild it for other phones like Windows Mobile, Android, or Blackberries? A: In a word, no. When you develop for iPhone, you use Apple’s iPhone frameworks, like Cocoa Touch, as well as Objective-C. Neither of these are available on other devices. Now let’s get started. Launch Xcode... you are here 4   9 get started with templates Xcode

frameworks shown were stubbed out based on our selection of a View-based application. As we go forward, we’ll use different types of apps and that will lead to different defaults. Class files are the Objective C files that your App will use - most code will be written here. Other sources include your main function and precompiled info. Here is where you can configure whether to build your app for. the simulator or a real device We’ll stick with the simulator throughout the book. for cludes

Yes, but what will we wire that event to? 72   Chapter 2 iPhone app patterns Without an action, your button won’t work! We learned about actions in Chapter 1, and without one there won’t be anything in the connections window to wire up in Interface Builder. Here’s the action we created for the button press in Chapter 1: - (IBAction) buttonPressed:(id)sender; IB = Interface Builder w to cre This is the name of the method called. The name can be anything,that will get must have one argument

setter checks to mak does generated lue is different, then retain the new va n the old value and a a release o one. on the new Write the code that Objective-C generates for each property declaration below. 1. @property (nonatomic, readonly) NSString* myField 2. @property (nonatomic, retain) NSString* myField 3. @property (nonatomic, assign) NSString* myField you are here 4   99 sharpen solution Below is the code that the compiler will generate for each property. 1. @property (nonatomic,

it. Out loud. 9 Create something! Apply this to your daily work; use what you are learning to make decisions on your projects. Just do something to get some experience beyond the exercises and activities in this book. All you need is a pencil and a problem to solve… a problem that might benefit from using the tools and techniques you’re studying for the exam. Your brain works best in a nice bath of fluid. Dehydration (which can happen before you ever feel thirsty) decreases cognitive

Download sample