title: iPhone - UIView animation problem in viewDidLoad / viewDidAppear
body: <p>I have a UIView that contains a subview called menuView managed by a MenuViewController.</p>
  
  <p>I wrote that code :</p>
  
  <pre><code>- (void) viewDidLoad
  {
      [self.menuView setFrame:CGRectOffset(self.menuView.frame, 0.0, self.menuView.frame.size.height)];
      [super viewDidLoad];
  }
  
  - (void) viewDidAppear:(BOOL)animated
  {
      [UIView beginAnimations:@"SomeAnimation" context:nil];
      [UIView setAnimationDuration:2.0];
      [UIView setAnimationDelegate:self];
      [UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.menuView cache:YES];           
      [self.menuView setFrame:CGRectOffset(self.menuView.frame, 0.0, -self.menuView.frame.size.height)];
  
      [UIView commitAnimations];
  
      [super viewDidAppear:animated];   // tried at begining too
  }
  </code></pre>
  
  <p>But when loaded, no animation is visible... I also tried with viewWillAppear with no change.</p>
  
  <p>it is called outside MenuViewController with :</p>
  
  <pre><code>- (IBAction) showMenu
  {
      MenuViewController* menuController = [[MenuViewController alloc] initWithNibName:@"Menu" bundle:nil];];
      [self.view addSubview:menuController.view];
  //    [menuController release];   for try
  }
  </code></pre>
  
  <p>What's the problem ?</p>
  
  <p>P.S. : What I want to do is when the view is displayed, some part of that view (the menuView) move. That view (partially transparent) is intended to cover a superview that is owned by another ViewController.</p>