I am having a problems with the dismissViewControllerAnimated
method not closing down the view.
What is happening in the app here is:
The answer is in this page: dismissviewcontrolleranimated-vs-popviewcontrolleranimated
dismissViewController is used when you do not have a navigationcontroller. Most probably you are using a navigation controller, then use self.navigationController popViewController instead.
Also take note of lemax his remark: use NULL, not nill for the completionhandler