Created
July 2, 2018 06:03
-
-
Save halilozel1903/94b862e36d3d6d624d2754e69e06ddd2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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