I am having a problems with the dismissViewControllerAnimated
method not closing down the view.
What is happening in the app here is:
Had a problem where calling dismissViewControllerAnimated
dismissed the keyboard in a UIViewController, but not the view itself.
Solved it by using two calls:
[self dismissViewControllerAnimated:NO completion:nil];
[self dismissViewControllerAnimated:YES completion:nil];
an instant one for the keyboard, then an animated one for the controller