Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
ReadMe.txt
SimpleDrillDown |
================================================================================ |
DESCRIPTION: |
This application shows how to create a basic drill down interface. |
The first scene shows a list of plays. When the user selects a play, the application displays a second scene that shows a list of the main characters and other data about the play. Both screens use a table view. The first list is in the "plain" style to show a standard list; the second is in the grouped style that you can use to lay out detail information. |
The transition from the first scene to the second is defined by a segue associated with the prototype table view cell in the table view controller's table view. In the storyboard, the segue is named, "ShowSelectedPlay". The name is used as the idetifier in RootViewController's prepareForSegue:sender: method. |
================================================================================ |
MEMORY MANAGEMENT STYLE: |
Automatic Reference Counting (ARC) |
================================================================================ |
BUILD REQUIREMENTS: |
Xcode 4.2 or later, OS X v10.7 or later, iOS 5 or later. |
================================================================================ |
RUNTIME REQUIREMENTS: |
OS X v10.7 or later, iOS 5 or later. |
================================================================================ |
PACKAGING LIST: |
SimpleDrillDownAppDelegate.{h,m} |
Application delegate that configures the root view controller. |
RootViewController.{h,m} |
Table view controller that sets up the initial table view. |
DetailViewController.{h,m} |
Table view controller that sets up the detail table view. |
DataController.{h,m} |
A simple controller class responsible for managing the application's data. |
Play.{h,m} |
A simple class to represent a play. |
main.m |
Main source file for this sample. |
MainStoryboard.storyboard |
The application's main storyboard. |
================================================================================ |
CHANGES FROM PREVIOUS VERSIONS: |
Version 3.1 |
- Corrected table view cell style to be Basic instead of Custom. |
Version 3.0 |
- Upgraded to use ARC and storyboards. |
Version 2.8 |
- Upgraded project to build with the iOS 4.0 SDK. |
Version 2.7 |
- Upgraded for 3.0 SDK due to deprecated APIs; in "cellForRowAtIndexPath:" it now uses UITableViewCell's initWithStyle. |
- Added a Play class to represent a play. |
Version 2.6 |
- Updated project to use nibs. |
Version 2.5 |
- Updated for and tested with iPhone OS 2.0. First public release. |
- Moved data controller to a separate object. |
Version 2.4 |
- Updated for Beta 6 |
- Set detail view to scroll to top without animation on display. |
Version 2.3 |
- Updated for Beta 5 |
- Changed order of presentation of detail view. |
Version 2.1 |
- Updated for Beta 4 |
- Adopts the new pattern in the Cocoa Touch List project template. |
- The application delegate serves as the controller for the application's data; the root table view controller retrieves data from the application delegate. |
Version 2.0 |
- Updated for Beta 3 |
- The samples now use nib files and UITableViewController; they also adopt the new pattern for table cell reuse. |
================================================================================ |
Copyright (C) 2008-2011 Apple Inc. All rights reserved. |
Copyright © 2012 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2012-02-28