Cover -- Contents -- Introduction -- 1. A Simple iPhone Application -- Creating an Xcode Project -- Using Interface Builder -- Model-View-Controller -- Declarations -- Declaring instance variables -- Declaring methods -- Making Connections -- Setting pointers -- Setting targets and actions -- Summary -- Implementing Methods -- Build and Run on the Simulator -- Event-driven Programming -- Deploying an Application -- Application Icons -- Default Images -- 2. Objective-C -- Objects -- Using Instances -- Writing the RandomPossessions Tool -- NSArray and NSMutableArray -- Subclassing an Objective-C Class -- Instance variables -- Accessors and properties -- Instance methods -- Initializers -- self -- super -- Initializer chain -- Class methods -- Exceptions and the Console Window -- Objective-C 2.0 Additions -- 3. Memory Management -- Memory Management Concepts -- Managing memory in C -- Managing memory with objects -- Reference Counting -- Using retain counts -- Avoiding memory leaks with autorelease -- Managing memory in accessors and properties -- Retain count rules -- Managing Memory in RandomPossessions -- 4. Delegation and Core Location -- Delegation -- Beginning the Whereami Application -- Using frameworks -- Core Location -- Receiving updates from CLLocationManager -- Releasing Controller Instance Variables -- Challenge: Heading -- For the More Curious: Compiler and Linker Errors -- For the More Curious: Protocols -- 5. MapKit and Text Input -- Object Diagrams -- MapKit Framework -- Interface Properties -- Being a MapView Delegate -- Your own MKAnnotation -- Tagging locations -- Challenge: Annotation Extras -- Challenge: Reverse Geocoding -- Challenge: Changing the Map Type -- For the More Curious: Renaming an Application -- 6. Subclassing UIView -- Creating a Custom View -- The drawRect: method -- Instantiating a UIView -- Drawing Text and Shadows -- Using UIScrollView -- Zooming -- Hiding the Status Bar -- Challenge: Colors -- For the More Curious: Retain Cycles -- For the More Curious: Redrawing Views -- 7. View Controllers -- View Controllers and XIB Files -- Using View Controllers -- Creating the UITabBarController -- Creating view controllers and tab bar items -- Creating views for the view controllers -- viewWillAppear: -- The Lifecycle of a View Controller -- Challenge: Map Tab -- For the More Curious: Paging -- 8. The Accelerometer -- Setting Up the Accelerometer -- Getting Accelerometer Data -- Orientation and Scale of Acceleration -- Using Accelerometer Data -- Smoothing Accelerometer Data -- Detecting Shakes -- Challenge: Changing Colors -- For the More Curious: Filtering and Frequency -- 9. Notification and Rotation -- Notification Center -- UIDevice Notifications -- Autorotation -- For the More Curious: Forcing Landscape Mode -- Challenge: Proximity Notifications -- For the More Curious: Overriding Autorotation -- 10. UITableView and UITableViewController -- Beginning the Homepwner Application -- UITableViewController -- Subclassing UITableViewController -- UITableView's Data Source -- UITableViewDataSource protocol -- UITableViewCells.
0
SUMMARY OR ABSTRACT
Text of Note
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. Written by the trainers at the Big Nerd Ranch, the worldwide leader in professional training for Mac developers, this book provides a hands-on guide to learning how to program for the iPhone and iPod touch. Coverage includesAn overview of Objective-C, the core language you'll use to program for the iPhoneAn overview of the Xcode ToolsHow to work with the iPhone SDK's UIKit framework and Cocoa TouchBuild apps that use MapKit and CoreLocation, as well as the magnetometerDive into animation and effects, using Core Animation and OpenGL ES.