Created
June 26, 2018 07:30
-
-
Save halilozel1903/f100e8b15ef5647f0c1f5b98441619e8 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
@IBAction func btnClicked(_ sender: Any) { | |
// alert dialog ile ilgili ayarlar yapıldı. | |
let alert = UIAlertController(title: "Alert", message: "Very critical alert", preferredStyle: .alert) | |
let okButton = UIAlertAction(title: "OK", style: .cancel, handler: nil) // tamam butonu tanımı | |
alert.addAction(okButton) // action eklendi. | |
// yapıları görüntülemede kullanılır. | |
self.present(alert, animated: true, completion: nil) // completion : işlem sonrası birşeyler yapılacak mı ? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment