Skip to content

Instantly share code, notes, and snippets.

@halilozel1903
Created July 2, 2018 06:03
Show Gist options
  • Save halilozel1903/94b862e36d3d6d624d2754e69e06ddd2 to your computer and use it in GitHub Desktop.
Save halilozel1903/94b862e36d3d6d624d2754e69e06ddd2 to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
imageView.isUserInteractionEnabled = true // tıklanabilirlik özelliği eklendi.
let gestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(ViewController.changePic))
imageView.addGestureRecognizer(gestureRecognizer) // Ekrana yapılan dokunmaları takip eden metoddur.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment