Ios – How to avoid Touches cancelled event

cocoa-touchiostouchescancelleduitouch

I have two views one beneath the another. I'm rotating the below view by touch sensing of top view. while trying to make a swipe, touches canceled event is called before touches ended event. While moving the finger touches began and touches moved events are called , and then touches ended event is called at the last(mostly). But sometimes while trying to move slowly,touches canceled event is called stopping the touch events to occur. So i couldn't rotate view in slow speed. What may be the problem? how to avoid touches canceled event?

Note: I'm drawing some graphs in views using core-plot lib.

Best Answer

If you are using any UIGestureRecognizers they automatically cancel touches to other views when they recognize their gesture. You can turn this behavior off with the cancelsTouchesInView property of the recognizer.