title: set a timer before user can tap on a button ios
body: <p>I need help to set a timer on a button. Now I have this code,</p>
  
  <pre><code>- (IBAction)btnPlaySound:(id)sender {
      CFBundleRef mainBundle = CFBundleGetMainBundle();
      CFURLRef soundFileUrlRef;
      soundFileUrlRef = CFBundleCopyResourceURL(mainBundle, (CFStringRef) @"", CFSTR(""), NULL);
      UInt32 soundID;
      AudioServicesCreateSystemSoundID(soundFileUrlRef, &amp;soundID);
      AudioServicesPlaySystemSound(soundID);
  }
  </code></pre>
  
  <p>and I want that the user can tap on this button only once every 2 seconds, I have to insert a <code>NSTimer</code> I think but in which way?</p>
  
  <p>Thanks</p>