Skip to content

Instantly share code, notes, and snippets.

@sheafk
Last active July 18, 2016 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheafk/c2162daa5e6a9c5e083eaec9a4d34eba to your computer and use it in GitHub Desktop.
Save sheafk/c2162daa5e6a9c5e083eaec9a4d34eba to your computer and use it in GitHub Desktop.
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
if let touch = touches.first {
let position = touch.locationInView(view)
print(position)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment