According to your question, While tracking,cancelTrackingWithEvent:
get called. Right. Check your view or superview with Gesture
call backs. If You've added pan Gesture
, This type of problem will rise. That is your control touch will begin and get tracked upto this tracking change to panning
.
To solve this issue, set tag to your view and cancel gesture call as below.
During your view creation
yourView.tag = CANCELVIEWTAG;
Cancel gesture if touch happen in your view.
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
if (touch.view.tag == CANCELVIEWTAG) {
return NO;
}
return YES;
}