In my iOS application, I need to either prevent the capture of screenshots (by pressing the combination of the Home + Power button) or detect it before it is saved in the photo library. In a previous version of iOS, before taking a screenshot touchesCancelled:withEvent, this method is called, but iOS7 does not work. Apple provides notice
UIApplicationUserDidTakeScreenshotNotification
to detect screen capture. The real problem is that this will only work after saving the picture in the photo library.
Are there any methods (private / public) for detecting a screenshot before it occurs or just disable the screenshot function.
Do not view it as a duplicate question, this is a specific iOS7 question
source
share