Can applicationWillResignActive be used for pausing the application
<p>In the MainViewController, I have a play/pause button. I was having problem in coding for the pause function because when i was using audio player pause it was pausing only the audio player but in background my application was still executing. I have used <code>NSTimer</code> for displaying various <code>UIViewControllers</code>. While audio player is paused it is still displaying <code>UIViewControllers</code> because of <code>NSTimer</code>.Whereas i wanted complete pause audio player &amp; application execution as well at the same time.</p>

<p>I found this <code>-applicationwillresignactive</code>. Do you think this <code>-applicationwillresignactive</code> can help me when i want complete pause audio player plus application pause.</p>

<p>Please suggest.</p>
