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
Configuration
-
datePicker
property -
dateFormatter
property -
displaySelectedDate
property -
placeholder
property -
displayDatePickerAsInputAccessoryView
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
displayDatePickerAsInputAccessoryView
Set to TRUE to display the date picker as a keyboard input accessory view that appears from the bottom of the screen, instead of displaying it inside the cell. Default: FALSE.
@property (nonatomic, readwrite) BOOL displayDatePickerAsInputAccessoryView
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.
+ (instancetype)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.
- (instancetype)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