I have two views
- the top view has some opaque and some transparent regions
- the bottom view has some clickable buttons.
The top view is completely covering the bottom view, but since top view has transparent areas, bottom view can still be seen.
BUT, i cannot detect button clicks on the bottom view anymore since topview is blocking it, what should I do?
Is there anyway to let top view pass the touches to bottom view?
My solution for my own question, hope it helps someone.
In the front view, listen for
touchesEnded:withEventdelegate.When this delegate fires, you knows that a user is touching the front view.
Next you need to check whether the finger position touches special areas in the BOTTOM view.
What to do is:
1) Convert the point to relative to the bottom view:
2) In the lower view
voila. In this way, we can detect clicks in bottom view even it is blocked by another interactive view on top.