How to display alert message in Swift 3

To display the Alert message in your Swift 3 application you can use the following code
I am using UIAlertController to show the message

You can see the following alert window for the above code

 

If you want to add “OK” button for the alert window you can use the following code

You will get the following alert window with “Ok” button

Leave a Reply

Your email address will not be published. Required fields are marked *