how to intercept touch events for Interface Builder's UIView

If I have a UIView that I laid out on a window using the interface builder, how to intercept its touch events? I can't subclass it because it's laid out with IB, so think of it as an existing UIView that I want to "observe".

thanks for any thoughts
phil

Mac OS X (10.5.2)

Posted on Oct 7, 2008 1:03 PM

Reply
4 replies

Oct 7, 2008 4:56 PM in response to SexyAndOhSoWitty

well, the deal is my project is a bit more complex than I explained...

What I'm trying to do is put a transparent view over a UIWebView so I can capture touch events and do a popup toolbar when a user does a single tap. The UIWebView hides all the events. So here is what my interface builder looks like:

http://www.grabup.com/uploads/64b6be0cc39d765bce9e8a9235054679.png

My UIWebView is attached to the view property of the controller currently. I've tried wiring in the view property to the transparent view as well, but it didn't work for me (the tap event still didn't trigger in the controller).

any other thoughts on this?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to intercept touch events for Interface Builder's UIView

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.