WeekdayPicker
public final class WeekdayPicker: UIPickerView
WeekdayPicker is a custom UIDatePicker with weekdays.
-
Delegate method
Declaration
Swift
public weak var delegated: WeekdayPickerDelegate?
-
Current selected date
Declaration
Swift
public internal(set) var currentDate: Date?
-
Component Index enum
See moreDeclaration
Swift
public enum ComponentIndex: Int
-
Init function take frame
Declaration
Swift
public override init(frame: CGRect)
-
Init function coder
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Called by the picker view when the user selects a row in a component.
Declaration
Swift
public func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int)
-
Called by the picker view when it needs the title to use for a given row in a given component.
Declaration
Swift
public func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String?
-
Called by the picker view when it needs the number of components.
Declaration
Swift
public func numberOfComponents(in pickerView: UIPickerView) -> Int
-
Called by the picker view when it needs the number of rows for a specified component.
Declaration
Swift
public func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int
-
Set DatePicker to date recieved as parameter
Declaration
Swift
public func setToDate(_ date: Date)
-
Reset desired or all component(s)
Declaration
Swift
public func resetComponent(component aComponent: ComponentIndex? = nil, resetAll: Bool = false)