1

I've a client who is suggesting that you can activate the iPhone lock screen from code. His idea is to send a push notification and lock the phone that way.

I don't think this is possible (for practical reasons mostly).

Am I correct?

Paul Johnston
  • 31
  • 1
  • 4
  • There is some discussion on this similar question here: http://stackoverflow.com/questions/832940/programmatically-lock-and-unlock-screen-of-iphone – Luke Jul 07 '11 at 09:04

1 Answers1

1

The answer is in your question itself. It is not possible. You can prevent your phone from locking when your app is running.

Code as,

[UIApplication sharedApplication].idleTimerDisabled = YES
halfer
  • 19,824
  • 17
  • 99
  • 186
KingofBliss
  • 15,055
  • 6
  • 50
  • 72