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,226
  • 2
  • 18
  • 40

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,084
  • 13
  • 60
  • 74
Yaro
  • 1,202
  • 11
  • 15