These suggestions did not work for me in iOS 6. What is work:
In your:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
Add this:
cell.textView.dataDetectorTypes = UIDataDetectorTypeAll; cell.textView.editable = NO; cell.textView.userInteractionEnabled = YES; UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget: self action: @selector(forwardToDidSelect:)]; cell.tag = indexPath.row; [cell.textView addGestureRecognizer: tap];
As well as:
- (void) forwardToDidSelect: (UITapGestureRecognizer *) tap { [self tableView: self.tableView didSelectRowAtIndexPath: [NSIndexPath indexPathForRow: tap.view.tag inSection: kTextViewCellSection]]; }
It seems like setting userInteractionEnabled = YES after setting editable = NO. Installing them in XIB does not work.
source share