2

Is there any method that calls in app when user made screenshot (hold home button + power) ??? Or which methods could be called ? Like applicationDidBecomeActive or something else ? Thanks...

1
  • 3
    This is a legitimate question, and it shouldn't have been "closed as not a real question". If anything, it's a duplicate. Commented Sep 8, 2013 at 6:35

2 Answers 2

4

You could periodically check the latest photo in the library using code from this answer.

Then check some properties to see if it is NOT coming from the camera or other source:

  • the format should be PNG
  • dimensions should match the screen size
  • some additional metadata, perhaps
1

In iOS 4.0, there was a notification fired PictureWasTakenNotification, but not anymore in iOS 5.0 or latter.

3
  • I have seen apps that detect this; I assume they detect its addition to the asset library in some way.
    – Cowirrie
    Commented Apr 12, 2012 at 11:10
  • 1
    stackoverflow.com/q/2121970/602011
    – Jim
    Commented Apr 12, 2012 at 11:12
  • 1
    In iOS 4.0, there was a Darwin notification fired PictureWasTakenNotification, but not anymore.
    – iOSPawan
    Commented Apr 12, 2012 at 11:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.