I’m struggling with UIGestureRecognizer. I’m following the tutorials on this site and (sort of) understand how an object moves around the screen. The problem is that I want to restrict the movement of an object to be in a circular path only (ie a button moving around a circle). Is it possible to restrict the area where an object can move and also to control the path of the movement?
@jfortyork Thanks very much for your question!
I did find an older tutorial on our site that might still be of use to you
Having said that, if you had a UIGestureRecognizer to a particular view, the gesture is restricted to that view. So if you have a view that is circular, and attach a gestureRecognizer to it, then the gesture is restricted to that circular view. Is this what you’re enquiring about? Just wondering.
This topic was automatically closed after 166 days. New replies are no longer allowed.