6 ms·
Curious, how do the capture the event of the cover lifting?
by togasystems 15y ago
Curious, how do the capture the event of the cover lifting?
- xuki 15y agoThey don't. They capture the active/inactive event. Try tap the home button and re-open the app.
- jessriedel 15y agoCould you elaborate? Is the inactive event triggered when the screen is completely covered, and any uncovering triggers the active event?
- xuki 15y agoThere are some cases where these events are triggered, open and close the Smart Cover is one of them. You can read the following API documentation for more info: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/UIApplicationDelegate http://developer.apple.com/library/ios/#documentation/UIKit/... My guess is they do the switch of question when applicationWillResignActive is being called. Simple as that.