I have programmed a UIImageView that allows me to draw inside of it. It therefore tracks the users touches and records it. When used in a window it works great.
However, I have then added it as a subView of a UIScrollView which resides in a View Controller. When I try and use it now, the touch gestures inside of the UIImageView simply scroll the whole view rather than draw inside the UIImageView.
How do I refer gestures made to the UIScrollView which are also inside of the UIImageView to the UIImageView.
I hope that makes sense
Best regards
EDIT: I have set all the following properties: canCancelContentTouches
, exclusiveTouch
and delaysContentTouches
to NO.
Now, when I touch inside the UIImageView it doesn't scroll but still won't call the methods: touchesBegan:withEvent:
, touchesMoved:withEvent:
or touchesEnded:withEvent:
which each reside in the ViewController