0

I observed a strange behaviour that If I run the app via XCode while the phone is connected using USB the app never lets the iphone home screen to timeout and lock after 1 minute.

But If I disconnect the USB and launch the app then the screen goes lock after 1 minute.

Is this a default behaviour?

Dickens A S
  • 3,824
  • 2
  • 22
  • 45

1 Answers1

0

Yes it's possible because xCode can not connect (and install, debug) while the phone is locked.

BTW you can alter this behavior in code:

[UIApplication sharedApplication].idleTimerDisabled = YES;

Swift

UIApplication.shared.isIdleTimerDisabled = true
Rajneesh071
  • 30,846
  • 15
  • 61
  • 74
Yaro
  • 1,222
  • 11
  • 15