How do I make an Alert message UIAlertController

0

Good,

How do I make an alert? the way I did it seems to be all right except for the function error.

Some help, thank you in advance.

    
asked by anonymous 09.10.2016 / 01:28

2 answers

1
In Swift 3, the presentViewController (_: animated: completion:) method has been replaced by present (_: animated: completion:)
self.present(myAlert, animated: true, completion: nil)
    
09.10.2016 / 22:24
1

The original error was that you had called "presentedViewController", which is a property, instead of "presentViewController ()" which is a method. They were two letters, it is easy to confuse: -)

    
17.10.2016 / 03:14