Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let alertController = UIAlertController(title: " ", message: message, preferredStyle: .alert)
- let action1 = UIAlertAction(title: "OK", style: .default) { (action) in
- print("Default is pressed.....")
- }
- let action2 = UIAlertAction(title: "Cancel", style: .cancel) { (action) in
- print("Cancel is pressed......")
- }
- let action3 = UIAlertAction(title: "Click new", style: .default) { (action) in
- print("Destructive is pressed....")
- }
- alertController.addAction(action1)
- alertController.addAction(action2)
- alertController.addAction(action3)
- self.present(alertController, animated: true, completion: nil)
Add Comment
Please, Sign In to add comment