title: Animating self.view.frame?
body: <p>I am trying to mimic UINavigationController's pushViewController using UIView animation but I have seem to run into an issue. I cannot animate the self.view.frame.</p>
  
  <p>This is the code I am using but self.view just won't move!</p>
  
  <pre><code>    [self.view addSubview:myViewController.view];
      [myViewController.view setFrame:CGRectMake(320, 0, 320, 480)];    
      [UIView animateWithDuration:0.5 
                       animations:^{
                           [self.view setFrame:CGRectMake(-320, 0, 320, 480)];
                           [myViewController.view setFrame:CGRectMake(0, 0, 320, 480)];
                       }
                       completion:^(BOOL finished){
                           [view1.view removeFromSuperview];
                       }];
  </code></pre>
  
  <p>Thanks!</p>