title: - (void)viewWillAppear:(BOOL)animated detect custom animation
body: <p>I have a button which when pressed pushes a view controller however i'm using a custom animation so <code>pushViewController: childController animated:</code> is set to NO. What i want to do though is detect this custom animation in my <code>- (void)viewWillAppear:(BOOL)animated</code>method and write an if statement like this;</p>
  
  <pre><code>- (void)viewWillAppear:(BOOL)animated { 
       if (customAnimation occured) {//Do this} 
       else {//Do this}
  }
  </code></pre>
  
  <p>This is the method for my button which pushes the view controller.</p>
  
  <pre><code>- (void)nextPressed:(id)sender {
      childController = [[CategoryOneDetailController alloc] initWithNibName:xibDownName bundle:nil];
      [UIView  beginAnimations: @"Showinfo"context: nil];
      [UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
      [UIView setAnimationDuration:0.75];
      [self.navigationController pushViewController: childController animated:NO];
      [UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.navigationController.view cache:NO];
      [UIView commitAnimations];
      [childController release];
  }
  </code></pre>
  
  <p>Any help would be much appreciated, thanks, Sami.</p>