- (void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event {
if(touches.count == 1)
{
if([[touches anyObject] tapCount] == 1)
{
// Do the action here for single tap
}
else if([[touches anyObject] tapCount] == 2)
{
// Do the action here for double tap
}
}
}
1 回答
您可以避免轻击手势 . 而不是你可以识别触摸事件本身的点击 .
并且您必须设置全局bool变量以检查用户是否在屏幕上移动了手指 .
并在触摸移动事件中使其为真
在录制曲目之前,检查此标志是否为TRUE?并且在保存轨道后也不要忘记将标志设置为FALSE
希望对你有帮助 :)