Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ExpiryOutlet.addTarget(self, action: #selector(ExpiryDidChange(_:)), for: .editingChanged)
- func ExpiryDidChange(_ textField: UITextField) {
- if textField == ExpiryOutlet {
- if textField.text != "" && textField.text?.characters.count == 2 {
- textField.text = "(textField.text!) / "
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement