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.

Creation and Initialization

  • 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;

Configuration