I have a custom class created as a subclass of UIImageView. I am trying to create an action attached to UIPanGestureRecognizer for an instance of this class (the object is called token.
let recognizer = UIPanGestureRecognizer(target: self, action:"handleTokenDrag:test") token.addGestureRecognizer(recognizer)
In the handler function (handleTokenDrag) I have access to the view associated with this object, but not to the object itself. How do I access the object so I can call its methods and modify its properties?