tags:

views:

49

answers:

1

Hi, I got a problem when disable/enable the iphone idle function.

I try to use [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; to disable the iphone idle function, and it works fine.

Then i try to use [[UIApplication sharedApplication] setIdleTimerDisabled:NO]; to enable the idle function in a button click event. But it turned out to be not working.

I use my ipod touch device(OS4.1) to test this function. Any idea?

A: 

I tried this today again, and it works! So it's all set.

JohnnySun