Controlling Video with Gestures

2019-09-16 19:07发布

I have a video playing a camera rotating around a 3D model. I want to be able to sweep left to right to play the video forwards and right to left to play the video backwards.

Can this be done on iOS 4 and how?

Cheers

2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-09-16 19:34

just add a new transparent view on top of your video and catch touch actions in that layer

查看更多
何必那么认真
3楼-- · 2019-09-16 19:38

Add a UISwipeGestureRecognizer to the view that holds the video, and configure it.

查看更多
登录 后发表回答