As far as I know, what you really want
UILongPressGestureRecognizer
Because
UITapGestureRecognizer
Has no type of release event if you add
UILongPressGestureRecognizer
to
avPlayerViewController
Then in
-(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { if ( [gestureRecognizer isKindOfClass:[UILongPressGestureRecognizer class]] ) { } return YES; }
Then you can set the minimum gestures to make you feel better.
[holdGesture setMinimumPressDuration:0.01]
Then you can implement the method,
- (void)holdAction:(UILongPressGestureRecognizer *)holdRecognizer
Then check the status of the recognizer and perform the required functionality
source share