Looks like you didn’t ask a delegate?
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
It is part of the UIGestureRecognizerDelegate. Therefore, you must also set a delegate.
touchHold.delegate = self;
Edit: You must tell the controller your view of the implementation of UIGestureRecognizerDelegate. Something like
@interface YourViewController <UIGestureRecognizerDelegate>
ewiinnnnn
source share