我如何知道手指何时向下以及何时向上UITapGestureRecognizer
?文档说我应该只处理水龙头
,所以这意味着当手指向下时,但我得到的只是.
我用来注册识别器的代码是:UIGestureRecognizerStateEnded
UIGestureRecognizerStateBegin
UIGestureRecognizerStateEnded
[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tap:)]