0

For my app I would like to have it so the user can swipe in every direction using the UISwipeGestureRecgoniser. Would it be possible to instead of having just up, down, left and right, but one for ever degree and therefore I can use that to move my sprite in that direction?

Max Kortge
  • 527
  • 7
  • 23

1 Answers1

0

UISwipeGestureRecgonizer doesn't have such possibility, it only contains 4 directions

If you want just to move object along with user finger you can try dragging event (UIControlEventTouchDragInside). Here is nice example how to achieve this: Basic Drag and Drop in iOS

Community
  • 1
  • 1
B.S.
  • 21,660
  • 14
  • 87
  • 109