Programatically Lock the iOS device

Hi,


We are developing one application in that we want to lock the iPhone/Launch the PIN screen from our application.

It can be done using GSEventLockDevice method which is found in GraphicsServices.framework but this is private API so we can’t use it, Apple will reject this app in app store.

Also I saw one video of application in that that they are locking the iOS device programatically And just curious how they are doing it.

So just wanted to know is there any way/API available in iOS by using that we can lock the iOS device programatically.


Thanks in advance.

Replies

Your app can lock itself, but it has no control over the device's lock screen as there is no public API available in this example.