Attempt to present UIAlertController on UIViewController whose view is not in the window hierarchy
问题 I'm trying to check the UIAlertController in iOS 9 for my sample application and while run it then I had found warning in console. I'm using Xcode 7 and Objective C. Please find the below warning message in console. Warning: Attempt to present < UIAlertController: 0x7fb1bb5be040 > on < ViewController: 0x7fb1bb5aef30 > whose view is not in the window hierarchy! Please find the below code for more information. UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My Alert"