Chapter 3. Using Xcode
Listing 3.1. iPhone presents... Hello, World!
Chapter 5. Creating basic view controllers
Listing 5.1. Three methods that control how your table is created and runs
Chapter 6. Monitoring events and actions
Listing 6.1. manageTouches, which accepts inputs and changes views
Chapter 7. Creating advanced view controllers
Listing 7.1. Tab bar controller setup
Listing 7.2. A table for a navigator
Listing 7.3. Activating a navigation controller
Listing 7.4. The flipside toggler
Listing 7.5. Declaring the dataset array for the SplitViewController
Listing 7.6. Populating the dataset for the SplitViewController
Listing 7.7. UITableViewDelegate methods for displaying bookmark data
Listing 7.8. Adding an IBOutlet for your UIWebView
Listing 7.9. Responding to device rotation
Listing 7.10. Displaying a popover view when a button is pressed
Chapter 8. Data: actions, preferences, and files
Listing 8.1. Following the table view methods to fill out your preferences table
Listing 8.2. Preferences setup with NSUserDefaults
Listing 8.3. Setting and saving NSUserDefaults
Listing 8.4. A prototype notepad program that maintains a text field as a file
Chapter 9. Data: advanced techniques
Listing 9.1. SKDatabase, a new sqlite3 database class
Listing 9.2. SKMenu, an interface to the SKDatabase class
Listing 9.3. DatabaseViewController, a database-driven table view controller
Listing 9.4. applicationDidFinishLaunchingThe app delegate that glues together these classes
Listing 9.5. Looking up information in the Address Book
Listing 9.6. People-picker: a simple, graphical way to select contacts
Listing 9.7. Functionality required to call up a new person view controller
Listing 9.8. Declaring the Core Data objects
Listing 9.9. Setter methods for Core Data objects
Listing 9.10. Object model and object context getter methods
Listing 9.11. Saving the managed object context
Chapter 10. Positioning: accelerometers, location, and the compass
Listing 10.1. Movement reporter that could be applied as a program controller
Listing 10.2. Shake, shake your iPhone
Listing 10.3. An application of Core Location for distances
Listing 10.4. Keeping track of a mountain climb with your iPhone
Chapter 11. Media: images and the camera
Listing 11.1. Using UIImageView to animate images
Listing 11.2. A view controller, which manages most of the collage’s tasks
Listing 11.3. Moving a temporary image by touches
Listing 11.4. Background view managing low-level drawing when an image is set
Chapter 12. Media: audio and recording
Listing 12.1. iPodSampleViewController.h
Listing 12.2. iPodTestViewController.m
Listing 12.3. Initialization code for AVAudioRecorder
Listing 12.4. TalkBackViewController.h
Chapter 13. Graphics: Quartz, Core Animation, and OpenGL
Listing 13.1. Using bitmaps to edit images
Listing 13.2. The important bits of a view controller for a PhotoDraw program
Chapter 14. The web: web views and internet protocols
Listing 14.1. A simple hostname lookup
Listing 14.2. A thumbnail web viewer
Listing 14.3. Reading an XML text file
Listing 14.4. Creating a table from an RSS feed
Listing 14.5. Deriving altitude from GeoNames
Listing 14.6. A simple POSTing example
Chapter 15. Peer-to-peer connections using Game Kit
Listing 15.1. GKPeerPickerControllerDelegate methods
Listing 15.2. Implementing the didChangeState delegate method
Listing 15.3. Implementing the receiveData and send methods
Listing 15.4. GKTennisViewController.h
Listing 15.5. Game initialization
Listing 15.6. Setting up the peer picker and responding to its events
Listing 15.7. sendNetworkPacket method
Chapter 16. Push notification services
Chapter 17. The Map Kit framework
Listing 17.1. Dropping a pin on the center of the map
Chapter 18. In-app purchasing using Store Kit
Listing 18.1. RootViewConroller.h
Listing 18.2. viewDidLoad method of RootViewController.m
Listing 18.3. Requesting product information
Listing 18.4. Delegate methods for UITableView
Listing 18.5. didSelectRowAtIndexPath method for the UITableView
Listing 18.6. WallpaperViewController.h
Listing 18.7. WallpaperViewController.m
Listing 18.8. Delegate methods for Store Kit
Listing 18.9. Store Kit response methods
Listing 18.10. Recording transactions and delivering content
Chapter 19. iPhone SDK enhancements
Appendix D. Updating current applications for the iPad
Listing D.1. Adding compiler directives in collageViewController.m
Listing D.2. Updating the image-view frame in tempImageView.m