Custom credit card mask delegate sample app.
How to use ?
- Copy CreditCardDelegate into your project
- In the viewDidLoad;
- delegate = CreditCardDelegate(tfCreditCard)
- tfCreditCard.text = delegate?.getDefaultMask()
- tfCreditCard.delegate = delegate
In the viewDidDisappear;
- delegate = nil