title: Making the app wait a few seconds before executing code?
body: <p>Im trying to implement a way of taking a screenshot in my application. I want the UINavigationBar tip slide up - take the screenshot - and then the UINavigationBar can slide down nice and easy. I need the app to wait/hold a few seconds between some lines of code, because this  way the first animation does not get time to finish:</p>
  
  <pre><code>[self.navigationController setNavigationBarHidden:YES animated:YES ];
  [self.navigationController setNavigationBarHidden:NO animated:YES];
  </code></pre>
  
  <p>So, is there a way of delaying execution, like when animation a button like so:</p>
  
  <pre><code>[UIView animateWithDuration:0.5 delay:3 options:UIViewAnimationOptionCurveEaseOut animations:^{self.myButton.frame = someButtonFrane;} completion:nil];
  </code></pre>
  
  <p>regards</p>