1

Possible Duplicate:
Notification of or detecting screenshot being taken?

Currently, I realize that you can't not caught home and lock button simultaneously in iOS app? If my conclusion is wrong, please point at to me how to detect this event.

Thanks,

Community
  • 1
  • 1
Soa Nguyen
  • 11
  • 2

1 Answers1

1

Your app delegate method - (void)applicationWillResignActive:(UIApplication *)application will be called when the user takes a screenshot. If you want to emulate SnapChat then just hide your window in this method (be sure to unhide it in - (void)applicationDidBecomeActive:(UIApplication *)application)

TomSwift
  • 39,369
  • 12
  • 121
  • 149
  • 2
    "Your app delegate method - (void)applicationWillResignActive:(UIApplication *)application will be called when the user takes a screenshot" -> I checked and delegate method wasn't called when user takes a screenshot. I have a solution based on borrrden guide. – Soa Nguyen Jan 09 '13 at 04:16