I am creating an iPad application on iOS5.0. I need to close it if the user is in the application and presses the power off button on the iPad. The user will have to restart the application as soon as he presses the power button. How am I supposed to do this?
Thanks in advance for your help.
source share