简体   繁体   中英

Lock iPhone and iPad Screen programmatically

I want to lock screen iPhone and iPad programmatically I have searched a lot but didn't get proper idea. I have found one app Lock me but it is not worked on after iOS 7.

here is that link https://github.com/neuroo/LockMeNow

as per my search I think we are able to implement this functionality using private api and using kiosk mode.

I don't think you can programmatically lock the iPhone or iPad from you application. that not full fit the apple policy and its guide line. In iOS app development we can not handle any API that out of the application. Apple not make any API for lock screen that you fire from your native app.

Other things is you are attached one link in your question. that clearly write the limitation that:

This application can obviously not be accepted (as is) on the Apple Store, and that's mostly why I put it here. If you want to use the application, you will need a developer cert (or a jailbroken device and using the iDevice build toolchain).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM