title: What's the best way to detect when the app is entering the background for my view?
body: <p>I have a view controller that uses an <code>NSTimer</code> to execute some code.</p>
  
  <p>What's the best way to detect when the app is going to the background so I can pause the timer?</p>