iOS Private API: lock device and power off the screen
问题 I'm making an app for jailbreak that lock the device when the user launch the app. I've tried GSEventLockDevice(); from GraphicsServices.framework but this does not work properly because it locks the screen but does not power off the screen. Is there another way to lock the screen without MobileSubstrate ? 回答1: Just as another alternative, check out this answer, which uses SBDimScreen() . You could use that in conjunction with GSEventLockDevice() . It appears that you may now (iOS 5+) need to