I am creating an iPad application on iOS5.0. I need it to close down if the user is in the app and presses the power off button on the iPad. The user would need to restart the app once he clicks the power button. How should I accomplish this?
Thanks in advance for your help on this one.
set this key
in
App-info.plistfile, then addexit(0);toapplicationDidEnterBackground