I try to get the coordinates from the location where I hit the touchscreen to do put a specific UIImage at this point.
How can I do this?
This is work in Swift 2.0
override func touchesBegan(touches: Set, withEvent event: UIEvent?) { if let touch = touches.first { let position :CGPoint = touch.locationInView(view) print(position.x) print(position.y) } }