title: popViewController / viewWillAppear not animated in iOS 5
body: <p>I wasn't lucky with searching for this, so here we go ;)</p>
  
  <p>I have a <code>UIViewController</code> with a custom <code>UINavigationBar</code> which pushes another <code>UIViewController</code> as subview.</p>
  
  <p>Everything works fine except when I click the <strong>back button on the subview</strong>. The previews (first) view appears correctly, but not animated. The animation of the <code>UINavigationBar</code> is correct, only the views switch immediately.</p>
  
  <p>The function <code>- (void)viewWillAppear:(BOOL)animated</code> of the first <code>UIViewController</code> gets called with <code>NO</code> for <code>animated</code>. This only happens when I test with iOS 5, not with iOS 4.</p>
  
  <p>Does anyone know how to fix this?</p>
  
  <p>Thanks for your help! Hannes</p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>I just removed all custom code and just used the plain <code>UINavigationBar</code> (so no extra settings) and it still doesn't work with iOS 5. This is my code I use in the first ViewController to push the second ViewController:</p>
  
  <p><code>[self.navigationController pushViewController:secondViewController animated:YES];</code></p>
  
  <p>As I already mentioned - when I click the back button in the navigation bar on the second view the first view appears immediately without animation.</p>
  
  <p>Any help would be appreciated! Thanks!</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>I feel like I'm getting closer to the issue, but still no solution:</p>
  
  <p>I just added a custom <code>UINavigationController</code> where I just call <code>[super popViewControllerAnimated:animated]</code>. This get's called correctly (animated is YES) but the <code>viewWillAppear</code> of the first <code>UIViewController</code> gets NO as value for animated...</p>