Disable screensaver while app is running

Discussion in 'iPhone/iPad Programming' started by aston, Apr 27, 2009.

  1. macrumors newbie

    I have small app that mix a sounds and when screensaver starts it plays only one. I use AVAudioPlayer.
  2. macrumors 68000

    If you mean when the phone auto-locks, to disable is just do

    	UIApplication *thisApp = [UIApplication sharedApplication];
    	thisApp.idleTimerDisabled = YES;
  3. macrumors newbie

    Thanks a lot!

Share This Page