title: iOS - setIdleTimerDisabled:NO Not Working
body: <p>I have an app that utilizes the video camera so the screen cannot dim. Inhibiting the screen from dimming works fine like so:</p>
  
  <pre><code>- (void)applicationDidBecomeActive:(UIApplication *)application
  {
      [[UIApplication sharedApplication] setIdleTimerDisabled:YES];
  }
  </code></pre>
  
  <p>However when the app is closed and enters the background, setting the IdleTimer back to NO is not working. The screen stays on forever on the home screen. This is how I am trying to accomplish this.</p>
  
  <pre><code>- (void)applicationWillResignActive:(UIApplication *)application
  {
      [[UIApplication sharedApplication] setIdleTimerDisabled:NO];
  }
  </code></pre>
  
  <p>Is there a better place to add this line of code?</p>