title: Hide all modal view controllers
body: <p>i've a login view presented as a ModelViewController and i have a register view presented as a NavigationControlloer on top of it:</p>
  
  <p>Login (ModelViewController)
  ---->Register(NavigationController)</p>
  
  <p>i'm presenting the Register view(CreateAccount) at the Loginview as follow:</p>
  
  <pre><code>createAccount= [[CreateAccount alloc] initWithNibName:@"CreateAccount" bundle:nil];
  
  navController = [[UINavigationController alloc] initWithRootViewController:createAccount];
  
  UIBarButtonItem *cancelButtun=[[UIBarButtonItem alloc]initWithTitle:@"Cancel" style:UIBarButtonItemStyleBordered target:self action:@selector(HideMe)];
  
  UIBarButtonItem *registerButtun=[[UIBarButtonItem alloc]initWithTitle:@"Register" style:UIBarButtonItemStyleBordered target:self action:@selector(Register)];
  
  createAccount.navigationItem.leftBarButtonItem = cancelButtun;
  createAccount.navigationItem.rightBarButtonItem=registerButtun;
  createAccount.title=@"Create Account";
  
  [self presentModalViewController:navController animated:YES];
  </code></pre>
  
  <p>the login controller has the NSURLConnectionDelegate for booth the login and the register.
  when registration finishs i simply call the</p>
  
  <pre><code>[self dismissModalViewControllerAnimated:YES];
  </code></pre>
  
  <p>which will dismiss the registration view only.</p>
  
  <p>i want to dismiss the login view also so i can go back to my main application.</p>