user1940321
user1940321

Reputation:

App not sleeping after idleTimer time expires

From what I understand the idleTimerDisabled setting is set to a default of NO. Although, when I run my app and wait for it to time out and sleep, it's not timing out and it's not sleeping.

I've gone into my AppDelegate and set it to NO manually to try to force it to sleep but still no luck. I'm using the code below...

[UIApplication sharedApplication].idleTimerDisabled = NO;

Any thoughts about why this might be happening?

Upvotes: 5

Views: 881

Answers (1)

Dan
Dan

Reputation: 5173

Run the app from the iOS device itself, not from the XCode debugger. The debugger will not allow the device to go to sleep because you're, well, debugging ;)

Upvotes: 12

Related Questions