1

I have a UITextView which should auto detect phone numbers. The detection works fine, however if the text is changed the link will call the previous number, even though the actual text has changed. What is the problem? Is this another iOS 7 bug (I have experienced quite a few with UITextView?

carloabelli
  • 4,289
  • 3
  • 43
  • 70

1 Answers1

0

This is a bug in iOS 7.

What you can try is resetting the text to nil, before setting the new string.

_textView.text = nil;
_textView.text = yourText;

This will reset the text view and correct phone number detection should work again.

Rafał Sroka
  • 39,540
  • 23
  • 113
  • 143