views:

171

answers:

1

How could I make sure that iPhone doesn't disable the screen or go to sleep for about 20 to 30 minutes?

+2  A: 

Check this link: http://stackoverflow.com/questions/493495/keep-iphone-active-while-running-program

In short:

[UIApplication sharedApplication].idleTimerDisabled = YES;
Philippe Leybaert