Why does a double-tap in UITextView select multiple words like "United States"?

Instead of the expected behavior of selecting a dingle word, UITextView will select multiple words in some cases.

Example: In Note app, type "United States is great." Double tap "United", it will select "United States".

This is a behavior I do not want. How do I get it to just select a single word every time?

That's not a question non your code but on an existing app.Better contact support or issue a bug repoprt.

I see 2 possible reasons:

the space between United and States is not a space but an insecable space. Then United States is a single word.

  • -> check by copying in a text editor and display hidden characters
  • -> Or print character code of United States in your code

The speed of double tap is very fast and it detects a triple tap (less likely).

Why does a double-tap in UITextView select multiple words like "United States"?
 
 
Q