If you want to do this so, Apple never approve this, your app must be jailbreak. you can do this by calling Private framework on your project. you can use GraphicsServices.framework
. note , this GraphicsServices.framework
is a private framework. Apple never accept your app. By calling GSEventLockDevice()
method you can lock your Iphone Device easily. This GSEventLockDevice()
resides in the GSEvent.h
. hope this one helps .