It seems that you have the @IBOutlet armor for CreditCardTextField , check your storyboard as soon as you plug in the socket again, all this should work again.
setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key CreditCardTextField.'
Here's how you check your exits:
Select the field, the outputs on the right should be connected correctly, and the circles in the code should have a dot inside, if the connection is not broken, drag it to fix it.
source share