Warning: Attempt to present *** whose view is not in the window hierarchy
问题 I'm receiving this error when I am using an attached long press gesture to get a modal view to come up using the following code: // Long press to go to settings for one - (void)longPressOne:(UILongPressGestureRecognizer*)gesture { [self performSegueWithIdentifier:@"buttonOne" sender:self]; } // Long press to go to settings for two - (void)longPressTwo:(UILongPressGestureRecognizer*)gesture { [self performSegueWithIdentifier:@"buttonTwo" sender:self]; } - (void)viewDidLoad { // Add gesture to