views:

28

answers:

1

I have an view overlayed on top of many other views. I am only using the overaly to detect some number of touches on the screen, but other than that I don't want the view to stop the behavior of other views underneath, which are scrollviews, etc. How can I forward all the touches through this overlay view? It is a subcalss of UIView.

A: 

Try something like this...

for (UIView *view in subviews)
  [view touchesBegan:touches withEvent:event];

The code above, in your touchesBegan method for example would pass the touches to all of the subviews of view.

Jordan