iPhone OS Reference Library Apple Developer Connection spyglass button

Version: 1.0

Posted: 2009-05-30

Build Requirements: iPhone SDK 3.0

Runtime Requirements: iPhone SDK 3.0

View Source Code:

Download Sample Code (“DateCell.zip”, 26.3K)



Description

Demonstrates formatted display of date objects in UITableViewCells and use of UIDatePicker to edit those values.

Using a grouped style UITableViewController, the sample has two UITableViewCells to draw the primary title and NSDate value. This is accomplished using the built-in cell type "UITableViewCellStyleValue1" which supports left and right text. In addition, this sample shows how to use NSDateFormatter class to achieve the custom cell's date-formatted appearance.

Document Revision History

Date Notes
2009-05-30Demonstrates formatted display of date objects in UITableViewCells and use of UIDatePicker to edit those values.
Did this document help you? Yes It's good, but... Not helpful...