I've got an application that should open an Alert View Controller in the viewDidLoad()-function. It's a simple reminder app. Here's the piece of code:
let alert = UIAlertController(title: "Reminder", message: "Your reminder text", preferredStyle: UIAlertControllerStyle.alert)
alert.addAction(UIAlertAction(title: "Sure!", style: UIAlertActionStyle.default) {
(finished) in
self.didReceiveRemoteNotificationAction()
})
self.present(alert, animated: true, completion: nil)
But the problem is: it doesn't show up! Can anyone explain to me why?
I do know that my Storyboard is very... interleaved with views. But that shouldn't be a problem, right?