SCDateAttributes
@interface SCDateAttributes : SCPropertyAttributes {
NSDateFormatter *dateFormatter;
UIDatePickerMode datePickerMode;
BOOL displayDatePickerAsInputAccessoryView;
}
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.
-
Undocumented
Declaration
Objective-C
NSDateFormatter *dateFormatter
-
Undocumented
Declaration
Objective-C
UIDatePickerMode datePickerMode
-
Undocumented
Declaration
Objective-C
BOOL displayDatePickerAsInputAccessoryView
-
Allocates and returns an initialized ‘SCDateAttributes’. *
- - parameter: formatter The date formatter used to display the date of generated control. Set to nil to ignore.
Declaration
Objective-C
+ (instancetype)attributesWithDateFormatter:(NSDateFormatter *)formatter;
-
Allocates and returns an initialized ‘SCDateAttributes’. *
- - parameter: formatter The date formatter used to display the date of generated control. Set to nil to ignore.
- - parameter: mode The date picker mode.
- - parameter: 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.
Declaration
Objective-C
+ (instancetype)attributesWithDateFormatter:(NSDateFormatter *)formatter datePickerMode:(UIDatePickerMode)mode displayDatePickerAsInputAccessoryView: (BOOL)displayDatePickerAsInputAccessoryView;
-
Returns an initialized ‘SCDateAttributes’. *
- - parameter: formatter The date formatter used to display the date of generated control. Set to nil to ignore.
Declaration
Objective-C
- (instancetype)initWithDateFormatter:(NSDateFormatter *)formatter;
-
Returns an initialized ‘SCDateAttributes’. *
- - parameter: formatter The date formatter used to display the date of generated control. Set to nil to ignore.
- - parameter: mode The date picker mode.
- - parameter: 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.
Declaration
Objective-C
- (instancetype)initWithDateFormatter:(NSDateFormatter *)formatter datePickerMode:(UIDatePickerMode)mode displayDatePickerAsInputAccessoryView: (BOOL)displayDatePickerAsInputAccessoryView;
-
The date formatter used to display the date of generated control. Set to nil to ignore.
Declaration
Objective-C
@property (nonatomic, strong) NSDateFormatter *dateFormatter;
-
The date picker mode. Default:UIDatePickerModeDateAndTime.
Declaration
Objective-C
@property (nonatomic) UIDatePickerMode datePickerMode;
-
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.
Declaration
Objective-C
@property (nonatomic) BOOL displayDatePickerAsInputAccessoryView;