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.

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

displaySelectedDate

If TRUE, the cell displays the selected date in a left aligned label. Default: TRUE.

@property (nonatomic, readwrite) BOOL displaySelectedDate

Declared In

SCTableViewCell.h

placeholder

A placeholder string that appears when no date is selected. Default: nil.

@property (nonatomic, copy) NSString *placeholder

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