iOS, locking the device from code
<p>for testing purposes (making a screenshot of a local notification) i need to be able to lock the device (simulator) from code (either tests code or app code).
I've looked at a couple of answers from here (GSEventLockDevice), but they are quite old and didn't work for me </p>