I'm trying to pass touch events from a UIImageView to a UIScrollView and it doesn't appear to be working. I've tried to define my screen elements below. Essentially, the overlaidImage will be the first to respond to all events. If a condition is met, I want it to handle the events. If not, I want it to be passed to the imageView and then along to the scrollView. My code works just fine to pass the events to the imageView and even to pass the events to the scrollview, but the scrollview doesn't respond to pinch/zoom events. As soon as I remove the overlaid image from the mainView, everything works as expected.
My application is setup as follows:
mainView
mainView->scrollView
mainView->scrollView->imageView
mainView->overlaidImage