I have a UITextView inside a UITableViewCell in a table. The "editable" for the UITextView is disabled, which allows me to set the dataDetectorTypes to UIDataDetectorTypeAll, which is exactly what I want. The application now detects when the user touches the link in the UITextView and does the corresponding thing.
The problem occurs when the user touches the part of the UITextView where there is no link. I want didSelectRowAtIndexPath in the UITableView delegate to be called. But this is not so, because the UITextView captures the touch, even if no connection is detected.
My first guess was to include userInteractionEnabled in a UITextView in NO. This means that didSelectRowAtIndexPath will be called, but the UITextView will not be able to detect the links. This is trick-22.
Any ideas on how to fix this?
Thanks for any help.
source
share