views:

18

answers:

1

I have a transparent view sitting on top of a UITextView which is responsible for allowing the user to drag images around. However, if the user isn't touching an image, I'd like to pass the touch events to the UITextView so the user can bring the keyboard up, type, copy, etc. just as if there wasn't a view on top of it. How is this accomplished?

I tried passing the touch events directly to the UITextView as well as calling nextResponder, but that doesn't work. Suggestions would be appreciated.

A: 

I have not yet tried this but, if the transparent view has User Interaction enabled could it register a touch and have it set your UITextView to becomeFirstResponder?

dredful
The problem is that the textview responds to many different interactions. So, for example, setting becomeFirstResponder on a single-tap would allow the user to type, it wouldn't allow them to scroll, long-tap to bring up the context menu, drag the text selector band around, etc.
Harkonian