Shaideru

All things iOS & Swift

Working with UIAlertController [Swift 2.0]

 

Design a view similar to the screenshot shown

Screen Shot 2015-08-30 at 3.09.35 PM

As shown in the screenshot, alert was triggered when you didn’t provide you password, here’s the code.

Screen Shot 2015-08-30 at 3.09.22 PM

The code if your passwordTextfield & confirmPasswordTextfield does not match.

Screen Shot 2015-08-30 at 3.08.51 PMAnd if you want to add cancel button to your alertView Controller.

I’ll be writing more detailed information about UIAlertViewController .

1 Discussion on “Working with UIAlertController [Swift 2.0]”

Leave A Comment

Your email address will not be published.