RSDDatePickerDataSourceObject
public struct RSDDatePickerDataSourceObject : RSDDatePickerDataSource
A simple struct that can be used to implement the RSDDatePickerDataSource protocol.
-
The type of UI picker to display for dates and times.
Declaration
Swift
public let datePickerMode: RSDDatePickerMode -
Specify the minimum date range. Default =
nil. WhenminimumDate>maximumDate, the values are ignored.Declaration
Swift
public let minimumDate: Date? -
Specify the maximum date range. Default =
nil. WhenminimumDate>maximumDate, the values are ignored.Declaration
Swift
public let maximumDate: Date? -
The minute interval to display in a picker wheel or list of choices. The interval must be evenly divided into 60. For example,
5is valid but7is not. Default is1, minimum is1, maximum is30.Declaration
Swift
public let minuteInterval: Int? -
The date formatter for displaying the date in a text field or label.
Declaration
Swift
public let dateFormatter: DateFormatter -
Default initializer. Auto-synthesized init is not public.
Declaration
Swift
public init(datePickerMode: RSDDatePickerMode, minimumDate: Date?, maximumDate: Date?, minuteInterval: Int?, dateFormatter: DateFormatter)
View on GitHub
RSDDatePickerDataSourceObject Structure Reference