开发者

Formatting UITextField or UiTextView

using iphone sdk 3.0 can someone say how to format a UIT开发者_运维问答extField 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


For a UITextView you can use:

[aTextView setDataDetectorTypes:UIDataDetectorTypeAll];

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜