I try to close a UIViewController
after an UIAlertController
has been shown.
This is my code:
UIAlertController *alertContr
In case someone is having the same issue. I pushed the UIViewController
, I didn't present it with presentViewController:animated:completion:
. That's why [self.navigationController popViewControllerAnimated:YES];
should be used instead.
The strange thing is that [self dismissViewControllerAnimated:YES completion:nil];
worked outside of the block and didn't inside, I have no explanation for this...