How do I Alert message Uialertcontroller

Asked

Viewed 66 times

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, since thank you.

Print

2 answers

1

The original error was that you had called "presentedViewController", which is a property, rather than "presentViewController()" which is a method. It was two little letters, it’s easy to confuse :-)

1


In Swift 3, the method presentViewController(_:Animated:Completion:) was replaced by (present_:Animated:Completion:)

self.present(myAlert, animated: true, completion: nil)
  • Good, Rafael that was already, thank you

Browser other questions tagged

You are not signed in. Login or sign up in order to post.