How to add an action to a UIAlertView button using Swift iOS?

Posted by Editorial Staff | Updated on

Want to add an action to a UIAlertView button using Swift iOS? The Swifty way is to use the new UIAlertController and closures:

Using Swift 3


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers