Possible Duplicate:
Get swipe direction in Cocoa
In my program I have created a UISwipeGestureRecognizer
in a header file and configured its directions to be UISwipeGestureRecognizerDirectionLeft
and UISwipeGestureRecognizerDirectionRight
in the implementation file. I have set it to call a method called handleSwipe
when the gesture is recognized. It successfully calls this method, but when I try to determine the direction of that gesture recognizer using its direction
property it does not give me a value. Why so?