I know that we can call GSEventLockDevice (); from the GraphicsServices.framework to lock the screen in iOS 6 and older version, as explained by H2CO3 Here. But unfortunately it's not working in iOS 7.
My Question :
How to lock the iPhone Screen programmatically in iOS 7 ?
Note : I don't want this for Appstore.