In my project when user select specific UITextField (that UITextField supposed to get user telephone number), the QuickType Keyboard show user telephone number. I want when user select his/her telephone number I can change that (remove "+" in telephone number) and show the result in that UITextField. how can I do that?
UPDATE:
I tried shouldChangeCharactersIn (UITextFieldDelegate function) to handle that, but replacementString return space (" ") and if I just return true (doing nothing inside that function) to that nothing will show inside UITextField.

You were on the right track with
shouldChangeCharactersIn, but in case with QuickType keyboard it gets called two times instead of one.First call is made to clean the current string, even when it's empty: range is
(0, 0)in this case. Not much sence, but if you type something, select whole text, and paste phone number from quick help, this first change will have range of the full string to clear it.And to modify input string, you need to update text field
textand returnfalse, because you don't need system to update text anymore.Note that it'll also ignore press of "+" made by user, if you don't want that you probably need to add more logic to that if, like
This will allow user to press "+" but remove it from any pasted content.