0

enter image description hereI am facing one minor issue with UITextview link functionality. I have enabled link,phone and address detection functionality in my app and it is working well.

My issue is if i added two links at a time say [email protected]\n9999999999\n99333333333

when i select [email protected] - 9999999999 will select too, though it is opening only [email protected] but selection shows to both of the text. So it can confuse user.

IS there any solution for this?Please check attached screen.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
PJR
  • 13,052
  • 13
  • 64
  • 104

1 Answers1

0

Uncheck editable property ofUITextView. and You need to give one space between every link or phone no. it will solve your problem. try it.

Write following code to get link to new line.

self.textView.text=[self.textView.text stringByReplacingOccurrencesOfString:@" " withString:@"\n"];
Ashok Londhe
  • 1,491
  • 11
  • 29