Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically lock iPhone screen in iOS 7

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.

like image 413
Bhavin Avatar asked Oct 06 '13 14:10

Bhavin


People also ask

How do I make my iPhone automatically lock?

Open the Settings app. Tap Display & Brightness. Select Auto-Lock. Set the timer to the time that works best for you.


1 Answers

Hi it's not possible in iOS7. You need special entitlement so until there will be a jailbreak you are out of luck

like image 160
user2868472 Avatar answered Nov 15 '22 04:11

user2868472