title: removeFromSuperview with animation and views management
body: <p>I did some digging around about this, but nothing really seems to answer my particular question (not even this: <a href="https://stackoverflow.com/questions/1714048/is-it-possbile-to-removefromsuperview-with-animation">Is it possbile to removeFromSuperview with Animation?</a>).</p>
  
  <p>Basically, my app starts with a welcome screen, where a user clicks on "sign in", then goes to the sign in view, then getting to a tab bar view, which is the actual app. </p>
  
  <p>The way I did it, is that I wrote a custom class - TabBarController, which sets up all the tabs and their respective view controllers. Now, when the user clicks on "sign in" i am calling removeFromSuperview and present the tabbar. </p>
  
  <p>I am trying to find a way to animate the transition from the sign in page to the tab bar. I tried some proposed solutions around here, but none seems to do the job. Here is my code in the signin.m view controller. I am looking to animate out the current view (ideally, not just by fading out, but more cool stuff like flips, etc.).</p>
  
  <pre><code>//when done signing in --&gt; go to the tab bar view 
  -(IBAction)done:(id)sender {
  
  TabBarController  *tabController = [[TabBarController alloc] init];
  [UIView beginAnimations:@"removeWithEffect" context:nil];
  [UIView setAnimationDuration:4.0];
  self.parentViewController.view.frame = CGRectMake(0,0,320,480);
  self.parentViewController.view.alpha = 1.0f;
  [UIView commitAnimations];
  [self.parentViewController.view performSelector:@selector(removeFromSuperview) withObject:nil afterDelay:2.5f];
  [self presentModalViewController:tabController animated:YES];
  
  }
  </code></pre>
  
  <p>Appreciate any help! </p>