ExpirationDatePicker
@IBDesignable
public class ExpirationDatePicker : UIPickerView, UIPickerViewDelegate, UIPickerViewDataSource
Expiration Date Picker is a control used for the inputting of expiration date.
-
Expiration picker delegate
Declaration
Swift
public weak var pickerDelegate: ExpirationDatePickerDelegate?
-
Initializes and returns a newly allocated view object with the specified frame rectangle.
Declaration
Swift
override public init(frame: CGRect)
-
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Set the date of the expiration picker
Declaration
Swift
public func setDate(_ date: Date, animated: Bool)
Parameters
date
Date
animated
set it to true if the picker should be animated
-
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 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
-
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?