SCDateCell Class Reference
Inherits from | SCLabelCell : SCControlCell : SCCustomCell : SCTableViewCell : UITableViewCell |
Conforms to | SCViewControllerDelegate |
Declared in | SCTableViewCell.h |
Overview
This class functions as a cell that provides the end-user with a UIDatePicker to choose a date with. The bound property of this cell must be of type NSDate.
Tasks
Creation and Initialization
-
+ cellWithText:boundObject:datePropertyName:
Allocates and returns an initialized SCDateCell given cell text, bound object, and a bound property name.
-
– initWithText:boundObject:datePropertyName:
Returns an initialized SCDateCell given cell text, bound object, and a bound property name.
Configuration
-
datePicker
The UIDatePicker control associated with the cell. Even though this property is readonly, feel free to customize any of the control’s properties.
property -
dateFormatter
Set to customize how the cell display’s the selected date.
property -
displaySelectedDate
If TRUE, the cell displays the selected date in a left aligned label. Default: TRUE.
property -
displayDatePickerInDetailView
Set to TRUE to display the date picker in its own detail view, instead of displaying it in the current view. Default: FALSE.
property
Properties
dateFormatter
Set to customize how the cell display’s the selected date.
@property (nonatomic, strong) NSDateFormatter *dateFormatter
Declared In
SCTableViewCell.h
datePicker
The UIDatePicker control associated with the cell. Even though this property is readonly, feel free to customize any of the control’s properties.
@property (nonatomic, readonly) UIDatePicker *datePicker
Declared In
SCTableViewCell.h
Class Methods
cellWithText:boundObject:datePropertyName:
Allocates and returns an initialized SCDateCell given cell text, bound object, and a bound property name.
+ (id)cellWithText:(NSString *)cellText boundObject:(NSObject *)object datePropertyName:(NSString *)propertyName
Parameters
- cellText
The text that will appear in the cell’s textLabel.
- object
The cell’s bound object (see SCTableViewCell class overview).
- propertyName
The cell’s bound property name corresponding to the cell’s date selection. Property must be a readwrite property of type NSDate.
Declared In
SCTableViewCell.h
Instance Methods
initWithText:boundObject:datePropertyName:
Returns an initialized SCDateCell given cell text, bound object, and a bound property name.
- (id)initWithText:(NSString *)cellText boundObject:(NSObject *)object datePropertyName:(NSString *)propertyName
Parameters
- cellText
The text that will appear in the cell’s textLabel.
- object
The cell’s bound object (see SCTableViewCell class overview).
- propertyName
The cell’s bound property name corresponding to the cell’s date selection. Property must be a readwrite property of type NSDate.
Declared In
SCTableViewCell.h