SCDateAttributes Class Reference
Inherits from | SCPropertyAttributes : NSObject |
Declared in | SCPropertyAttributes.h |
Overview
This class is used to extend the definition of an ‘SCPropertyAttributes’ instance of type SCPropertyTypeDate, thus allowing further customization of the generated control by the user.
Tasks
Creation and Initialization
-
+ attributesWithDateFormatter:
-
+ attributesWithDateFormatter:datePickerMode:displayDatePickerAsInputAccessoryView:
-
– initWithDateFormatter:
-
– initWithDateFormatter:datePickerMode:displayDatePickerAsInputAccessoryView:
Configuration
-
dateFormatter
property -
datePickerMode
property -
displayDatePickerAsInputAccessoryView
property
Properties
dateFormatter
The date formatter used to display the date of generated control. Set to nil to ignore.
@property (nonatomic, strong) NSDateFormatter *dateFormatter
Declared In
SCPropertyAttributes.h
datePickerMode
The date picker mode. Default:UIDatePickerModeDateAndTime.
@property (nonatomic, readwrite) UIDatePickerMode datePickerMode
Declared In
SCPropertyAttributes.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
SCPropertyAttributes.h
Class Methods
attributesWithDateFormatter:
Allocates and returns an initialized ‘SCDateAttributes’.
+ (instancetype)attributesWithDateFormatter:(NSDateFormatter *)formatter
Parameters
- formatter
The date formatter used to display the date of generated control. Set to nil to ignore.
Declared In
SCPropertyAttributes.h
attributesWithDateFormatter:datePickerMode:displayDatePickerAsInputAccessoryView:
Allocates and returns an initialized ‘SCDateAttributes’.
+ (instancetype)attributesWithDateFormatter:(NSDateFormatter *)formatter datePickerMode:(UIDatePickerMode)mode displayDatePickerAsInputAccessoryView:(BOOL)displayDatePickerAsInputAccessoryView
Parameters
- formatter
The date formatter used to display the date of generated control. Set to nil to ignore.
- mode
The date picker mode.
- 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.
Declared In
SCPropertyAttributes.h
Instance Methods
initWithDateFormatter:
Returns an initialized ‘SCDateAttributes’.
- (instancetype)initWithDateFormatter:(NSDateFormatter *)formatter
Parameters
- formatter
The date formatter used to display the date of generated control. Set to nil to ignore.
Declared In
SCPropertyAttributes.h
initWithDateFormatter:datePickerMode:displayDatePickerAsInputAccessoryView:
Returns an initialized ‘SCDateAttributes’.
- (instancetype)initWithDateFormatter:(NSDateFormatter *)formatter datePickerMode:(UIDatePickerMode)mode displayDatePickerAsInputAccessoryView:(BOOL)displayDatePickerAsInputAccessoryView
Parameters
- formatter
The date formatter used to display the date of generated control. Set to nil to ignore.
- mode
The date picker mode.
- 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.
Declared In
SCPropertyAttributes.h