34,333
edits
Changes
no edit summary
<pre>
override func touchesBegan(touches: NSSetSet<NSObject>, withEvent event: UIEvent) {
let theTouch = touches.anyObject() first as ! UITouch
currentLocation = theTouch.locationInView(self.view)
<pre>
override func touchesMoved(touches: NSSetSet<NSObject>, withEvent event: UIEvent) { let theTouch = touches.anyObject() first as ! UITouch
currentLocation = theTouch.locationInView(self.view)
<pre>
override func touchesEnded(touches: NSSetSet<NSObject>, withEvent event: UIEvent) {
animator?.removeBehavior(attachment)
}
<pre>
override func touchesBegan(touches: NSSetSet<NSObject>, withEvent event: UIEvent) { let theTouch = touches.anyObject() first as ! UITouch
currentLocation = theTouch.locationInView(self.view)