Prevent your iPhone app from entering into Sleep/Standby mode
I’m not quite sure why it’s so easy than I ever think of. But it is!
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
It just disables the Idle Timer of iPhone OS for my application.
Sweet!
erwin
where should i enter it? thanks.
Seree
Hi erwin,
You can enter it in the application’s delegate.
Thanks!