2
How to apply mask on a UITextField
? I found some ways to apply a mask on a UITextField
, but it did not seem to me something very correct to do. It can be an example of telephone mask, very simple. It can be in Swift or Objective-C.
Note: a way that does not look like a "gambiarra"
I didn’t understand your question, what do you mean by a "mask"? a regular expression to validate the text?
– DaSilva
It would set a default for the Uitextfield String. Example: Phone field: (##)####-####
– Gian
Or also example of value field: $##,##
– Gian
For the phone case, I answered another question here. For monetary value, you can try something from here.
– Paulo Rodrigues