阅读背景:

Objective-C同时处理多个手势。

来源:互联网 

For a project I am working on I need a view to be able to handle two UIGestureRecognizers at one time: UILongPressGestureRecognizer and UITapGestureRecognizer. Specifically, the user should be able to press and hold the view for a new view to appear that disappears upon release (I already have this working). Then, when the user taps the view while holding it (i.e. with another finger), an action should occur (I cannot figure out how to get this working). A similar type example would be Snapchat stories: Press and hold to view the first image/video of a story, then tap to move to the next image/video.For a project I am working on I need a view to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: