I am presenting a modalviewcontroller from another modalviewcontroller. When I dismiss the second modalviewcontroller both the first and second modalviewcontroller should ge
i just found it's answer, may be it will help somebody we need just one line of code
[self.presentingViewController.presentingViewController dismissModalViewControllerAnimated:YES];