title: How to let two animations for UIView executed one by one
body: <p>I have a small UIView and want to let it move to center of screen first, and then, zoom to full screen.
  But when I begin start an animation like </p>
  
  <pre><code>[UIView beginAnimations:@"animation1" context:nil];
  [UIView setAnimationDuration:0.5];
  [UIView setAnimationDelegate:self];
  [UIView setAnimationDidStopSelector:@selector(showDetailToFullscreen)];
  self.currentDetailVC.frame = centerFrame;
  [UIView commitAnimations];
  </code></pre>
  
  <p>And in the same controller, I have a method:showDetailToFullscreen</p>
  
  <pre><code>- (void)showDetailToFullscreen {
      CGRect screenFrame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height);
      [UIView beginAnimations:@"animation2" context:nil];
      [UIView setAnimationDuration:0.5];
      self.currentDetailVC.view.frame = screenFrame;
      [UIView commitAnimations];
  }
  </code></pre>
  
  <p>but when start, it still executed together.
  I think the problem they are still in the same transaction. But how can I let these two animation executed one by one? Appreciate for any answer!</p>