I can detect user attempt to take screenshot but unable to restrict him to take screenshot. My Code is provided below
NSOperationQueue *mainQueue = [NSOperationQueue mainQueue];
[[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationUserDidTakeScreenshotNotification
object:nil
queue:mainQueue
usingBlock:^(NSNotification *note) {
[self.delegate screenShotDetected];
}];
Is there any technique or code to disable screenshot in the app?