34,333
edits
Changes
→Implementing the touchesBegan Method
override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
let theTouch = touches.anyObject() as UITouch
var startPoint = theTouch.locationInView(self.view)
let x = startPoint!.x