views:

21

answers:

2

I have a custom UITableViewCell with an image and UITextView property. The textview spans to the edge of the cell. My problem is tapping the textview does not register in didSelectRowAtIndexPath.

How can I make it so that I can "click through" my textview?

A: 

If you don't need it to be editable, just set your text view's enabled property to NO.

jer
userInteractionEnabled = NO worked. Thanks so much.
Oh Danny Boy
+1  A: 

You can assign a delegate to your UITextView, and in its textViewShouldBeginEditing: method, you can manually call the didSelectRowAtIndexPath method. If you can't easily get the indexPath of the row to select, you can use a subclass of UITextView that has an indexPath property, and in cellForRowAtIndexPath: method, when you create your UITextView, set the indexPath property.

GendoIkari