Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 27, 2009, 07: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, 08: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, 09: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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Suspend Growl notifications while app is running? Mal Mac Applications and Mac App Store 0 Oct 26, 2010 05:38 PM
Disable Trackpad while Mouse is present??? HOW? UltraNEO* MacBook Pro 13 Dec 25, 2009 08:30 PM
Is it safe to close the MBP lid while Windows is running? Earthling84 Windows, Linux & Others on the Mac 3 Jun 30, 2009 05:30 AM
how to determine the first time an app is run beachdog iPhone/iPad Programming 13 Nov 25, 2008 01:15 PM
Screensaver activating while EyeTV is running mrsk Mac Applications and Mac App Store 5 Sep 29, 2008 04:55 PM


All times are GMT -5. The time now is 05:39 PM.

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

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