Changes

Jump to: navigation, search

A Swift iOS 8 UIKit Dynamics Tutorial

17 bytes added, 18:04, 14 April 2015
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)

Navigation menu