You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 UITextFields text 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?
The text was updated successfully, but these errors were encountered:
I am trying to achieve UITextField with formatted phone number while user input progress.
My algo:
UITextField
stext
property new formatted phone numberAll 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?
The text was updated successfully, but these errors were encountered: