Question: Is there a message/event fired when the iPad cover is flipped closed?
Purpose: I have an iPad app that collects private information, such that when someone enters the room, a user might flip the cover closed. It makes sense -- and a user has requested -- that the app close itself or otherwise mask the users information should someone else then pick up the iPad.
Thanks.
Asked
Active
Viewed 40 times
0

user216661
- 323
- 3
- 14
1 Answers
1
Someone was suggesting to use the AppDelegate's applicationWillResignActive and applicationDidBecomeActive delegate methods and instantiate the accelerometer. When the device is locked (cover closed), the accelerometer is disabled and won't register events, but if the app is in the background, it's still active. Never tried it but it might work.

Community
- 1
- 1

Simon Germain
- 6,834
- 1
- 27
- 42