Present UIAlertController from AppDelegate [duplicate]
This question already has an answer here: How to present UIAlertController when not in a view controller? 31 answers I'm trying to present a UIAlertController from the AppDelegate in my iOS app. Below is the alert and the present method. UIAlertController *alert = [UIAlertController alertControllerWithTitle:cTitle message:cMessage preferredStyle:UIAlertControllerStyleAlert]; //Configure alert and actions [self.window.rootViewController presentViewController:alert animated:TRUE completion:nil]; However, when I try to present the alert, it doesn't appear and I get the following alert in the