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!