tech74
tech74

Reputation: 1375

Formatting UITextField or UiTextView

using iphone sdk 3.0 can someone say how to format a UITextField or UITextView so that when the user enters a phone number it will be formatted the way the contacts application formats the number ie +1 (888) 465-375 How to do this?

Thanks

Upvotes: 4

Views: 685

Answers (1)

Tom Irving
Tom Irving

Reputation: 10059

For a UITextView you can use:

[aTextView setDataDetectorTypes:UIDataDetectorTypeAll];

I don't think there is such an option for a UITextField.

Upvotes: 2

Related Questions