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
?
Asked
Active
Viewed 102 times
1

carloabelli
- 4,289
- 3
- 43
- 70
-
It appears so. Check [this](http://stackoverflow.com/questions/18962742/uitextview-link-detection-in-ios-7/18968687#18968687) out for a workaround. – Drewness Feb 28 '14 at 21:11
-
are you saving that tex of textviewt?? where and how? – Mohit Mar 01 '14 at 06:58
-
@mohitpopat What do you mean by saving the text? – carloabelli Mar 01 '14 at 15:43
1 Answers
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
-
Still getting the old phone number. Is there any other workaround? – carloabelli Feb 28 '14 at 21:44