I found out the problem. I used MSSlideNavigationController
which overrides - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
So when I track, the touch passed to MSSlideNavigationController
. To solve this I changed the (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch' in
MSSlideNavigationController` class that returns NO when the tracking comes from my CustomUIControl. I set tag 9999 to my customcontrol
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
if (touch.view.tag == 9999) {
return NO;
}
return YES;
}