Alex Rivera | Logout

Programmatically lock and unlock iPhone screen

Asked 2009-05-07T04:57:35.057
16

How do I programmatically lock and unlock the main screen (i.e. the device itself) of an iPhone?

Edit
Report

1 Answer

23

It can be done by caling GSEventLockDevice (); from your app. This function can be found in GraphicsServices.framework.

answered 2010-12-03T18:53:51.793

Your Answer