I have this code for my AVPlayerViewController
.
UITapGestureRecognizer *tap=[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAvPlayer)];
[self.avPlayerViewController.view addGestureRecognizer:tap];
but this is not working.. :S, I tried setting
[self.avPlayerViewController.view setUserInteractionEnabled:YES];
still no good..
The only working solution is to use UIGestureRecognizer
and implement it's shouldReceiveTouch
delegate and check if the av player is touched.. but the issue is, we wan't to capture the "tap release" event.. because if the av player
view is just touched, it immediately executes the code and that is not what we wanted...
Please help us with this issue..
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…