title: How can i dismiss modalViewController without leaving current view?
body: <p>My application is view based app. First view is login view. After login view i have MainMenuCcontroller which has a tabBarController:</p>
  
  <pre><code> @interface RunnoMainMenuController : UIViewController {
  IBOutlet UITabBarController *tabBarController;
   }
  </code></pre>
  
  <p>From login view controller, i am going to MainMenuController using this line of code:</p>
  
  <pre><code> [self presentModalViewController:mainMenu animated:YES];
  </code></pre>
  
  <p>this controller has 4 tabs. Now i need to do some stuff in viewWillAppear of a tabBarItem. viewWillAppear is not called when i tap a tabBarItem. I have a button in one of those tabBarItem's view which pops up a table view controller using presentModalViewController. This tableView uses dismissModalViewControllerAnimated:YES to disappear it. When i pop up this tableview and dismiss it then viewWillAppear of every tabBarItem works fine. If i will dismiss modalViewController in MainMenuController then it will again go back to login view. How can i dismiss modalViewController without leaving current view or any other solution? Thanks in advance. </p>