deactivate stand-by of iphone
i have an app that doesn't use touch, but only voice.
so, after some times, the iphone goes to stand-by makeing the screen black while the app is running!
how can i solve this problem?
thanks
so, after some times, the iphone goes to stand-by makeing the screen black while the app is running!
how can i solve this problem?
thanks
perhaps i have find it here:
http://developer.apple.com/library/ios/#...TP40006728
idleTimerDisabled
A Boolean value that controls whether the idle timer is disabled for the application.
@property(nonatomic, getter=isIdleTimerDisabled) BOOL idleTimerDisabled
Discussion
The default value of this property is NO. When most applications have no touches as user input for a short period, the system puts the device into a "sleep” state where the screen dims. This is done for the purposes of conserving power. However, applications that don't have user input except for the accelerometer—games, for instance—can, by setting this property to YES, disable the “idle timer” to avert system sleep.
tonight i'll try
http://developer.apple.com/library/ios/#...TP40006728
idleTimerDisabled
A Boolean value that controls whether the idle timer is disabled for the application.
@property(nonatomic, getter=isIdleTimerDisabled) BOOL idleTimerDisabled
Discussion
The default value of this property is NO. When most applications have no touches as user input for a short period, the system puts the device into a "sleep” state where the screen dims. This is done for the purposes of conserving power. However, applications that don't have user input except for the accelerometer—games, for instance—can, by setting this property to YES, disable the “idle timer” to avert system sleep.
tonight i'll try

i have sett the property to YES, but the iphone goes to standby anyway!
Code:
[UIApplication sharedApplication].idleTimerDisabled = YES;