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:
Allocates and returns an initialized ‘SCDateAttributes’.
-
+ attributesWithDateFormatter:datePickerMode:displayDatePickerInDetailView:
Allocates and returns an initialized ‘SCDateAttributes’.
-
– initWithDateFormatter:
Returns an initialized ‘SCDateAttributes’.
-
– initWithDateFormatter:datePickerMode:displayDatePickerInDetailView:
Returns an initialized ‘SCDateAttributes’.
Configuration
-
dateFormatter
The date formatter used to display the date of generated control. Set to nil to ignore.
property -
datePickerMode
The date picker mode. Default:UIDatePickerModeDateAndTime.
property -
displayDatePickerInDetailView
Set to TRUE to display the date picker in an automatically generated detail view. Default: FALSE.
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
Class Methods
attributesWithDateFormatter:
Allocates and returns an initialized ‘SCDateAttributes’.
+ (id)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:displayDatePickerInDetailView:
Allocates and returns an initialized ‘SCDateAttributes’.
+ (id)attributesWithDateFormatter:(NSDateFormatter *)formatter datePickerMode:(UIDatePickerMode)mode displayDatePickerInDetailView:(BOOL)inDetailView
Parameters
- formatter
The date formatter used to display the date of generated control. Set to nil to ignore.
- mode
The date picker mode.
- inDetailView
Set to TRUE to display the date picker in an automatically generated detail view.
Declared In
SCPropertyAttributes.h
Instance Methods
initWithDateFormatter:
Returns an initialized ‘SCDateAttributes’.
- (id)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:displayDatePickerInDetailView:
Returns an initialized ‘SCDateAttributes’.
- (id)initWithDateFormatter:(NSDateFormatter *)formatter datePickerMode:(UIDatePickerMode)mode displayDatePickerInDetailView:(BOOL)inDetailView
Parameters
- formatter
The date formatter used to display the date of generated control. Set to nil to ignore.
- mode
The date picker mode.
- inDetailView
Set to TRUE to display the date picker in an automatically generated detail view.
Declared In
SCPropertyAttributes.h