Is there a way to prevent the iPad from sleeping while my app runs? I am making a kiosk app that needs to not auto sleep.
Thanks, see my comment to `igul222`s answer.
Moshe
2010-10-31 03:09:53
It only affects the iPad while your app is running.
Kevin Ballard
2010-10-31 06:13:51
A:
Here's how to do it, as of 2010.
You will have a file called "AppDelegate_Pad.h"...
-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[window addSubview:yourHappyPlace.view];
[window makeKeyAndVisible];
application.idleTimerDisabled = YES;
return YES;
}
Joe Blow
2010-10-29 12:02:22