I have a UIView
which contains a zoomable UIImageView
and also another semitransparent UIView
on top of that.
What I am trying to achieve is to be able to zoom the UIImageView
while keeping the semitransparent view static and not zoomed.
If I add the semitransparent UIView
on top of the UIImageView
(which is added to the UIScrollView
), everything zooms. However, if I add both as subviews to the base UIView
, the touches only get tracked is the semitransparent UIView
since its the last one added.
I do need control to reside first at the semitransparent UIView
for the touches since I may want to resize the semitransparent view. However, I'd like to pass control of the touches to the UIScrollView
if two fingers are used. Is there anyway for me to achieve this? The nextresponder doesn't seem to work. I also tried to use hittest in addition to subclassing UIWindow
, but the base UIView
needs to push/pop navigation controlling ability so I don't think I can subclass UIWindow
to push onto the navigation stack.
Any help would be appreciated.
Thanks,
Winston