Disable screensaver while app is running

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

  1. macrumors newbie

    Joined:
    Apr 27, 2009
    #1
    Hi!
    I have small app that mix a sounds and when screensaver starts it plays only one. I use AVAudioPlayer.
    Thanks
     
  2. macrumors 68000

    Joined:
    Nov 3, 2007
    #2
    If you mean when the phone auto-locks, to disable is just do

    Code:
    	UIApplication *thisApp = [UIApplication sharedApplication];
    	thisApp.idleTimerDisabled = YES;
    
     
  3. thread starter macrumors newbie

    Joined:
    Apr 27, 2009
    #3
    Thanks a lot!
     

Share This Page