Top of the page
Close

This is a red error

This is a red error

This is a red error

How to keep the iphone screen on, and stop it from auto locking

Ondrej Rafaj on 2009.10.13 17:08:34

Very nice snippet, this allows you to keep your screen turned on as long as you need. Using the idleTimerDisabled in applicationDidFinishLaunching (UIApplication)

- (void)applicationDidFinishLaunching:(UIApplication *)application {
	application.idleTimerDisabled = YES;
}
Maybe will be a good idea to create some settings to disable this functionality as it can drain the users battery very quickly ... especially if you are using some WiFi or GPS in the same time.

Ondrej Rafaj

Ondrej Rafaj

Independent iPhone developer @ ondrej-rafaj.co.uk

I am available to give you a free quote or start working on your project ... just give me a call or drop a line. Please find all my details on my portfolio site ondrej-rafaj.co.uk

Back to top Comment

Comments ... Why not to get involved!

We had to disable comments till the problem with spam will be solved, sorry for any inconvenience caused.

Back to top

IE SUCKS, DON'T USE IT :) Digg this page