Skip to content

Instantly share code, notes, and snippets.

@halilozel1903
Created June 26, 2018 07:30
Show Gist options
  • Save halilozel1903/f100e8b15ef5647f0c1f5b98441619e8 to your computer and use it in GitHub Desktop.
Save halilozel1903/f100e8b15ef5647f0c1f5b98441619e8 to your computer and use it in GitHub Desktop.
@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