Skip to content

Instantly share code, notes, and snippets.

@tpthn
Created August 10, 2012 20:33
Show Gist options
  • Save tpthn/3317646 to your computer and use it in GitHub Desktop.
Save tpthn/3317646 to your computer and use it in GitHub Desktop.
iOS - dim the screen
//dim the screen base on a slider value
[[UIScreen mainScreen] setBrightness:[(UISlider *)sender value]/100];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment