UIView でタッチを検出しています。touchesEnded が呼び出されないように、タッチをキャンセルできるようにしたい状況があります。しかし、どの touchesEnded が常に呼び出されるかは問題ではありませんか?
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
if (SOMETHING_SPECIAL)
{
[super touchesCancelled:touches withEvent:event];
}
}
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
//I don't want it to get here if touches were canceled how can i do this?
}
- 私の touchesEnded では、タッチがキャンセルされたかどうかをどのように判断できますか?