How to pause and resume NStimer
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/347219/how-can-i-programmatically-pause-an-nstimer">How can I programmatically pause an NSTimer?</a>  </p>
</blockquote>



<p>I have a question. How can I pause a countdown using a timer? I am developing a game. In the game, I need to go to next view when the timer pauses, and after coming back I want to resume it. </p>

<p>I try this code in the view:</p>

<pre><code>[mytimer pause];

// to resume
[mytimer resume];
</code></pre>

<p>I try that code, but I get a warning saying: "NSTimer may not respond to 'pause'"</p>

<p>I build with that warning and when I press the pause button, the app crashes.</p>
