title: How to dismiss the two or more dismissModalViewController?
body: <p>I need to dismiss the two modal view controllers, I know how to pop two or more view controllers</p>
  
  <pre><code>        UINavigationController* navController = self.navigationController;
      NSArray *array=[navController viewControllers];
      UIViewController* controller = [navController.viewControllers objectAtIndex:0];
      [navController popToViiewController:controller animated:YES];
  </code></pre>
  
  <p>This is how i can navigate back to my first view but if there are two or more dismiss modal view then how can i navigate back </p>
  
  <p>please help me,
  Thank you,
  Madan Mohan</p>