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.
Open the Settings app. Tap Display & Brightness. Select Auto-Lock. Set the timer to the time that works best for you.
Hi it's not possible in iOS7. You need special entitlement so until there will be a jailbreak you are out of luck
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With