title: Change between UIViewcontroller.view subviews with animation
body: <p>I have one view controller which contains two views (redView, blueView). The views are smaller than the main view.</p>
  
  <p>I want to change from redView to blueView with animation. If use this none animation happens.</p>
  
  <pre><code>[UIView beginAnimations:@"View Flip" context:nil];
  [UIView setAnimationDuration:1.25];
  [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
  [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight 
                         forView:redView cache:YES]; // !!! I WILL CHANGE THIS
  
  [self.view addSubview:blueView];
  [redView removeFromSuperview];
  
  [UIView commitAnimations];
  </code></pre>
  
  <p>In case I change the code to this, then the animation is ok but the whole mainView animates, something that i do not want to happen. I want only the subViews to flip. I should note that the 2 subviews are in the same position. (frame) Any ideas?</p>
  
  <pre><code>[UIView beginAnimations:@"View Flip" context:nil];
  [UIView setAnimationDuration:1.25];
  [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
  [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight 
                         forView:self.view cache:YES];
  
  [self.view addSubview:blueView];
  [redView removeFromSuperview];
  
  [UIView commitAnimations];
  </code></pre>