Well I have made a UIView
subclass. Inside it a have placed a UIScrollView
object that has a circular shape and contains a uiviewimage. I have also placed CAShapeLayer
that has a circular shape. the CAShapeLayer
is above the UIScrollView
and is overlapping a little. I want to be able to detect tap when I touch the CAShapeLayer
and still be able to scroll inside the UIScrollView
when I want. The problem is some area of the CAShapeLayer
can not detect tap, but I want to detect the whole object even though it place above the UIScrollView
because it is overlapping a little on the right side.
For better understanding please look at this picture:
The problem is I don't know how to fix that, please show me with code how to do that...