Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this book

About Hello! books

1. Hello! iPhone

Chapter 1. Hello! iPhone

Turning your Mac into an iPhone app factory

Installing the iPhone SDK

Running Xcode for the first time

Using application templates

Learning Xcode’s user interface

Looking at Xcode’s menus

Running Xcode’s iPhone simulator

Introducing Interface Builder

Making Hello, World!

Editing, building, and running

Chapter 2. Thinking like an iPhone developer

Using model-view-controller to dissect apps

Thinking about apps as models, views, and controllers

Test yourself on models, views, and controllers

Designing apps with objects

Establishing class relationships

Organizing classes in headers and modules

Avoiding crashes by understanding object lifetime

Applying object-oriented design

Preparing to code object-oriented designs

Chapter 3. Coding in Objective-C

Creating classes to match your designs

Declaring a message

Declaring a view-controller message for your views to send

Using properties to save data in objects

Connecting code to views in Interface Builder