Last active
January 17, 2021 17:48
-
-
Save hasanalisiseci/f3e98218c726c3f384cfe11d1e32e798 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() | |
let keyboardGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(hideKeyboard)) // Gesture Recognizer'ı oluşturup içine hideKeyboard fonksiyonumuzu gönderdik. | |
view.addGestureRecognizer(keyboardGestureRecognizer) // Gesture Recognizer'ı tüm görünüme ekledik. | |
} | |
@objc func hideKeyboard() { | |
view.endEditing(true) //Klavyeyi kapatmamızı sağlayan fonksiyon. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment