0

I want to open textview link into the browser. It working fine for me. using this code.

textView.dataDetectorTypes = UIDataDetectorTypeLink;
textView.editable = NO;

But I want cell tap if user tap on textview other then link. But currently when user tap on textview other then link cell tap is not working.

I am not able to find any solution.

2 Answers 2

0

you can add a UITapGestureRecognizer on the textView like UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc]init]; [textView addGestureRecognizer:tap]; [tap addTarget:self action:@selector(gotoDetailVc)];

-1

You have to make CustomCell for it, put the UITextView in custom cell and its viewDidLoad method set

textView.dataDetectorTypes = UIDataDetectorTypeLink;
textView.editable = NO;
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.