Open
Description
I am trying to achieve UITextField with formatted phone number while user input progress.
My algo:
- Get only digits from phone field
- Format digits as phone number
- Set
UITextField
stext
property new formatted phone number
All works fine, until user tries to edit phone number in the middle.
I can not properly save and restore selectedRange
because of formatting chars " -()"
Is there any solution for this problem?
Metadata
Metadata
Assignees
Labels
No labels