我正在开发一个我使用的应用程序
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
}
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
}
-(void)handleSingleTap:(UITapGestureRecognizer *)recognizer {
}
现在我在 iphone 3 中的问题touch move
是调用handleSingleTap
函数并且touchesEnded
没有被调用。这只发生在屏幕的下部,当我移动到那里时,触摸端没有被调用。如果我移动很长时间,就会touchesEnded
被调用。
但是这个东西在 iPhone4 和 iPad 上都能正常工作。在IPhone4和IPad之后touchsesMoved
就是调用了touchesEnded
。