1

i'm looking for something similar to setIdleTimer but as a .plist value. I just want to keep my app active even if the user is not using it for a while. Any suggestions?

Thanks

Fry
  • 922
  • 2
  • 10
  • 24

1 Answers1

2

As far as I know the only way to keep your app active is by setting

@property(nonatomic,getter=isIdleTimerDisabled)       BOOL idleTimerDisabled;     // default is NO

for UIApplication, that is

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];

If you want to set a different time you can do an hack by keeping the app active, running your own timer and dimming the screen when needed, but I am not sure it is worth the effort.

Community
  • 1
  • 1
Fr4ncis
  • 1,387
  • 1
  • 11
  • 23