DateCell

Last Revision:
Version 1.5, 2013-08-13
Editorial change.
(Full Revision History)
Build Requirements:
Xcode 5.0, iOS SDK 7.0
Runtime Requirements:
iOS 6.0 or later

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

As a delegate to this table, the sample uses the method "didSelectRowAtIndexPath" to open the UIDatePicker control.

For iOS 6.x and earlier, UIViewAnimation is used for sliding the UIDatePicker up on-screen and down off-screen. For iOS 7.x, the UIDatePicker is added in-line to the table view.

The action method of the UIDatePicker will directly set the NSDate property of the custom table cell. In addition, this sample shows how to use NSDateFormatter class to achieve the custom cell's date-formatted appearance.

../Art/Screenshot.png