title: Stop / Pause swift app for period of time
body: <p>My app uses multiple threads of <code>NSTimer</code> Object. </p>
  
  <p>Within the one function (called randomly at random times, not a fixed delay) I want it to pause the whole app, pause the threads for <code>1 second</code> only. I have the following code:</p>
  
  <pre><code>[self performSelector:@selector(subscribe) withObject:self afterDelay:3.0 ];
  </code></pre>
  
  <p>Which is objective C, and I tried translating it into Swift like this:</p>
  
  <pre><code>self.performSelector(Selector:changeColourOfPage(), withObject: self, afterDelay: 1.0)
  </code></pre>
  
  <p>But I am getting the error <code>Missing argument for parameter 'waitUntilDone' in call</code> and when I put that in, it says it wants the argument <code>modes</code> but when I put that in it says <code>Extra argument modes</code>. </p>
  
  <p>I cannot figure out how to pause the app and all it's threads for a couple of seconds, and then carry on like normal?</p>
  
  <p>Any ideas?</p>