Head First iPhone Development: A Learner's Guide to Creating Objective-C Applications for the iPhone
Dan Pilone, Tracey Pilone
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.
owns the nib contents. At this point the framework is loading the nib on behalf of our InstaTwitViewController class so that instance is used for connections. As the framework creates instances of our components, they’re connected up to the instance of InstaTwitViewController. The nib file cont instances of obje ains serialized configured them cts as we control objects . They are usually labels, but can belike buttons or anything that ca be serialized. n 5 When events occur with components,
object and it responds to that message (as opposed to returning a value from a method). The Objective-C runtime turns those messages into method calls on objects or classes (in the case of static methods), but get used to thinking about these as messages; you’ll see things like “the receiver of this message will...” all over Apple’s documentation. Now, let’s use message passing to get rid of the keyboard when the user is done with it. 114 Chapter 3 objective-c for the iPhone Ask the
brain activity. The things on the previous page are a big part of the solution, and they’re all things that have been proven to help your brain work in your favor. For example, studies show that putting words within the pictures they describe (as opposed to somewhere else in the page, like a caption or in the body text) causes your brain to try to makes sense of how the words and picture relate, and this causes more neurons to fire. More neurons firing = more chances for your brain to get that
used people. In stories, examples, pictures, etc., because, well, because you’re a person. And your brain pays more attention to people than it does to things. xxvi intro BULLET POINTS the intro Here’s what YOU can do to bend your brain into submission So, we did our part. The rest is up to you. These tips are a starting point; listen to your brain and figure out what works for you and what doesn’t. Try new things. Cut this out an ick it on your refrigerdatst or. 1 Slow down. The
involved with the stories. Make up your own captions for the photos. Groaning over a bad joke is still better than feeling nothing at all. Make this the last thing you read before bed. Or at least the last challenging thing. Part of the learning (especially the transfer to long-term memory) happens after you put the book down. Your brain needs time on its own, to do more processing. If you put in something new during that processing time, some of what you just learned will be lost. Talk about