skip to Main Content

Xcode – How can i use notification & alert in swift?

@IBAction func tapDeleteButton(_ sender: UIButton) { let alert = UIAlertController(title:"Are you sure?",message: "Do you really want to delete?",preferredStyle: UIAlertController.Style.alert) let cancle = UIAlertAction(title: "Cancel", style: .default, handler: nil) alert.addAction(cancle) present(alert, animated: true, completion: nil) let delete = UIAlertAction(title: "Delete", style:…

VIEW QUESTION
Back To Top
Search