Perhaps you could attach a UITextFieldDelegate
on the control and have it implement textField:shouldChangeCharactersInRange:replacementString:
That way, if it sees any characters that you don't want in the field, it can reject them.
↧
Answer by Marc Novakowski for What's the best way to validate currency input in UITextField?
↧