0

I have to download a very large file on the iPad. (iOS5, iOS6)

To keep the iPad screen from going in to sleep I use:

[UIApplication sharedApplication].idleTimerDisabled = YES;

But it doesn't work.

Can someone help me?

Jonathan
  • 480
  • 6
  • 9

1 Answers1

6

Try doing:

[UIApplication sharedApplication].idleTimerDisabled = NO;
[UIApplication sharedApplication].idleTimerDisabled = YES;

See this answer for more information.

Community
  • 1
  • 1
Nandeep Mali
  • 4,456
  • 1
  • 25
  • 34