UITapGestureRecognizer仅在state == UIGestureRecognizerStateEnded时触发

时间:2014-05-09 21:32:01

标签: uitapgesturerecognizer

我已经为我的UIView添加了一个UITapGestureRecognizer:

[[self view] addGestureRecognizer:[[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTapGesture :)] autorelease]];

它似乎工作得很好,除了它不会触发直到手指从屏幕释放,即当点击识别器的状态是UIGestureRecognizerStateEnded时。当手指第一次触摸屏幕时,我需要实时知道。有什么想法吗?

0 个答案:

没有答案