I'm making a tweak which lock screen and using NSTimer
to unlock screen on time like 5 minutes delay. But the powerd of system will get iPhone into deep sleep and stop NSTimer
, so the tweak can't unlock screen on time.
Anyone have idea to fix it?
A lot Appreciate!
The system uses an idle timer to determine when to put the device to sleep, in you app you can disable this by setting
UIApplication.sharedApplication().idleTimerDisabled = true
This will stop the system from putting the phone to sleep while your app is running.
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.