Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextView in custom UITableViewCell not responding to didSelectRowAtIndexPath

I have a UITextView in my custom UITableViewCell and the issue is that when I tap on it it won't respond to the didSelectRowAtIndexPath or even swipe events. How can I fix this? This UITextView is not editable. The reason why I use this over a UITextField is because I want to be able to detect links easily.

like image 805
aherlambang Avatar asked May 19 '11 22:05

aherlambang


2 Answers

I realize this is an old question, but I recently had the same issue. The fix in my case was to simply turn off "User Interaction Enabled" for the UITextView.

like image 107
PickledHerring Avatar answered Nov 14 '22 09:11

PickledHerring


you need to forward the touch messages from UITableView to UITextView

UITextView inside UITableView

like image 2
Hanuman Avatar answered Nov 14 '22 08:11

Hanuman