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...
Asked
Active
Viewed 4,680 times
2 Answers
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

Community
- 1
- 1

Tomas Andrle
- 13,132
- 15
- 75
- 92
1
In iOS 4.0, there was a notification fired PictureWasTakenNotification
, but not anymore in iOS 5.0 or latter.

iOSPawan
- 2,884
- 2
- 25
- 50
-
I have seen apps that detect this; I assume they detect its addition to the asset library in some way. – Cowirrie Apr 12 '12 at 11:10
-
1
-
1In iOS 4.0, there was a Darwin notification fired PictureWasTakenNotification, but not anymore. – iOSPawan Apr 12 '12 at 11:12