Animating view on top of presentModalViewController:animated
<p>using iPhone sdk 4.0. I would like to animate a view on top of the view shown by <code>presentModalView</code> Controller:animated but am getting some stall of the second animation. I suppose I need some way of knowing when the animation  of the <code>presentModal</code> method has finished so I can start the second animation . The second animation uses <code>CAtransition</code> and is just a small <code>subview</code> being animated into place on top.</p>

<pre><code>  CATransition *topTransition = [CATransition animation];
  topTransition.duration = 0.4;
  topTransition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
   topTransition.type = kCATransitionMoveIn;
   topTransition.subtype = kCATransitionFromTop;
  [self.newView.layer addAnimation:topTransition forKey:nil];
  self.newView.hidden = NO; 
</code></pre>

<p>Thanks</p>
