Skip to content

Instantly share code, notes, and snippets.

@darkseed
Created January 10, 2011 02:32
Show Gist options
  • Save darkseed/772263 to your computer and use it in GitHub Desktop.
Save darkseed/772263 to your computer and use it in GitHub Desktop.
Disable/Enable the iOS idle times to prevent screen dimming
// Disable
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
// Enable
[[UIApplication sharedApplication] setIdleTimerDisabled:NO];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment