Formatting a UITextField or UiTextView

using iphone sdk 3.0 you can tell how to format a UITextField or UITextView so that when a user enters a phone number, it will be formatted so the application-application formats the number, i.e. +1 (888) 465-375 How to do this?

thanks

+4
source share
1 answer

For UITextView you can use:

[aTextView setDataDetectorTypes:UIDataDetectorTypeAll]; 

I do not think there is such an option for UITextField.

+2
source

Source: https://habr.com/ru/post/1308664/


All Articles