title: Make a button visible after some time with NSTimer
body: <p>I'm trying to develop a new application for <code>iOS</code> but I'm stuck with <code>NSTimer</code> :-(. Currently I have a <code>void</code> function which hides an <code>UIButton</code> after the user taps twice or more on the screen and a <code>NSTimer</code>. I want to make the button visible again after the <code>NSTimer</code> reaches 5 seconds and stop and reset it right after in order to re-hide it after the user taps twice again :-) but I don't know how to tell the app that 5 seconds have passed :-/.</p>
  
  <p>Can someone help me, please? :-)</p>
  
  <p>Here's the code so far :-)</p>
  
  <pre><code>- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
  {
      NSUInteger numTaps = [[touches anyObject] tapCount];
  
      if (numTaps &gt;= 2)
      {
          // Other code//
  
          [self.button setHidden:YES];
          buttonHideTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 invocation:nil repeats:NO];
  
          // Other code //
      }
  }
  </code></pre>
  
  <p><strong>Thanks!</strong></p>