Forcing entry of certain character types in UITextField
- by cannyboy
If I have a UITextField which the user is inputing a registration number, which has the format:
11-11-1111
(that is 2 digits, a dash, 2 digits, a dash, four digits)
How do I force the user to enter this kind of data only... so they can't enter anything except 0-9 in the first character, and only '-' for the third character etc.