objective c - Keep iphone active while running program -


How to set up an iPhone device to be active due to my app? Any idea

This code is running your app until your iPhone stops sleeping

// This app is sleeping when UIApplication * application = [UIApplication sharedApplication] is running; Application.idleTimerDisabled = Yes; // or simple [[UIApplication ShareApp] setIdleTimerDisabled: Yes];

Comments