BTUIKExpiryInputView
Objective-C
@interface BTUIKExpiryInputView
: UIView <UITextFieldDelegate, UICollectionViewDataSource,
UICollectionViewDelegateFlowLayout>
Swift
class BTUIKExpiryInputView : UIView, UITextFieldDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
@class A UIView designed to be used as an inputView
on a text field.
This input view makes it possible to enter a valid expiration date with 2 taps by showing buttons for months and years.
-
The selected year
Declaration
Objective-C
@property (nonatomic) NSInteger selectedYear;
Swift
var selectedYear: Int { get set }
-
The selected month
Declaration
Objective-C
@property (nonatomic) NSInteger selectedMonth;
Swift
var selectedMonth: Int { get set }
-
The delegate that should receive expiryInputViewDidChange calls
Declaration
Objective-C
@property (nonatomic, weak) id<BTUIKExpiryInputViewDelegate> delegate;
Swift
weak var delegate: BTUIKExpiryInputViewDelegate! { get set }