iOS7 Screen Capture Prevention / Detection
问题 In my iOS app I need either prevent the screenshot capture (by pressing combination of Home +Power button), or need to detect before it saved to the Photo library . In previous iOS version before taking screenshot touchesCancelled:withEvent this method will called , but iOS7 onwards this wont work. Apple provide a notification UIApplicationUserDidTakeScreenshotNotification for detecting screenshot capture .The real problem is this will fire only after the screenshot is saved in Photo library