A collection of handy code snippets in the languages that I use on a daily basis.
January 21, 2009
iPhone: Disable screen dimming
This can be very handy if you're developing an iPhone game, where the screen shouldn't automatically dim to save battery life. Use this code when you launch your gameplay view, and set it back when you leave gameplay: