Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 27, 2009, 08:02 AM   #1
aston
macrumors newbie
 
Join Date: Apr 2009
Disable screensaver while app is running

Hi!
I have small app that mix a sounds and when screensaver starts it plays only one. I use AVAudioPlayer.
Thanks
aston is offline   0 Reply With Quote
Old Apr 27, 2009, 09:34 AM   #2
Jeremy1026
macrumors 68000
 
Join Date: Nov 2007
Quote:
Originally Posted by aston View Post
Hi!
I have small app that mix a sounds and when screensaver starts it plays only one. I use AVAudioPlayer.
Thanks
If you mean when the phone auto-locks, to disable is just do

Code:
	UIApplication *thisApp = [UIApplication sharedApplication];
	thisApp.idleTimerDisabled = YES;
__________________
1026 Development
Jeremy1026 is offline   0 Reply With Quote
Old Apr 27, 2009, 10:23 AM   #3
aston
Thread Starter
macrumors newbie
 
Join Date: Apr 2009
Quote:
Originally Posted by Jeremy1026 View Post
If you mean when the phone auto-locks, to disable is just do

Code:
	UIApplication *thisApp = [UIApplication sharedApplication];
	thisApp.idleTimerDisabled = YES;
Thanks a lot!
aston is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Is there a running list of apps that you should disable App Nap on? justdep OS X Mavericks (10.9) 3 Oct 29, 2013 12:41 PM
iPhone: Is there a way to disable the Phone and Mail app from running 24/7 on ios6? kalirob99 Jailbreaks and iOS Hacks 18 May 22, 2013 04:20 PM
All iPads: iPad app like iSight screensaver for Mac OSX rybread iPad 0 Feb 4, 2013 07:39 PM
App to edit downloaded screensaver? poobear Mac Applications and Mac App Store 0 Sep 9, 2012 05:11 PM
Fan kicking on when plugged in and screensaver running kylera MacBook Air 0 Aug 8, 2012 06:12 AM

Forum Jump

All times are GMT -5. The time now is 04:59 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC