title: iOS: Core Animation UIView flip. How to make two turnover?
body: <p>I made CATransition animation, I have 2 UIView that flips. Code below makes one turnover, how can I make 2 turnovers? Show me example please. Here is my flip code: </p>
  
  <pre><code>CATransition* transition = [CATransition animation];
  transition.startProgress = 0;
  transition.endProgress = 1.0;
  transition.type =@"flip";// kCATransitionPush;
  transition.subtype = @"fromRight"; //kCATransitionFromRight;
  transition.duration = 0.3;
  
  
  
  // Add the transition animation to both layers
  [self.fitstUIView.layer addAnimation:transition forKey:@"transition"];
  [self.secondUIView.layer addAnimation:transition forKey:@"transition"];
  </code></pre>
  
  <p>Think of it like this is a coin that flips in the air. </p>
  
  <p>EDIT </p>
  
  <p>I also want that first flip was much faster than the second flip. Some kind of slow effect.</p>
  
  <p>My code doing things fine for one spin, but trouble is that if I just add this transition to layer more than once, spin will be only once. So, I need to nest CATransitions to one (CAAnimation group? can't make this thing to work for me) and add with add animation method.   </p>