title: Custom Animation for Pushing a UIViewController
body: <p>I want to show a custom animation when pushing a view controller: I would like to achieve something like an "expand" animation, that means the new view expands from a given rectangle, lets say [100,100 220,380] during the animation to full screen.</p>
  
  <p>Any suggestions where to start, respectively any documents, tutorials, links? :)</p>
  
  <hr>
  
  <p>Alright. I could make the expand animation with the following code:</p>
  
  <pre><code>if ([coming.view superview] == nil)   
      [self.view addSubview:coming.view];
      coming.view.frame = CGRectMake(160,160,0,0);
      [UIView beginAnimations:@"frame" context:nil];
      [UIView setAnimationDuration:4];
      [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
      [coming viewWillAppear:YES];
      [going viewWillAppear:YES];
      coming.view.frame = CGRectMake(0, 0, 320, 480);
      [going viewDidDisappear:YES];
      [coming viewDidAppear:YES];
      [UIView commitAnimations];
  </code></pre>
  
  <p>My View is properly displayed, but unfortunately the navigation bar is not updated. Is there a way to do that manually?</p>
  
  <hr>
  
  <p>In the sample code, a function is called all 0.03 seconds that updates the transformation of the view.
  Unfortunately, when pushing a <code>UIViewController</code>, I am not able to resize the frame of the view ...  am I ?</p>