首先设置一个bool变量flag,并设置为no,然后当发生touchesMoved事件的时候,把flag设置为yes.当touchesEnded时候判断flag的值,为yes说明发生touchesMoved事件,为no说明是点击事件