IOS7 Screen Capture Prevention / Detection

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

0
source share
2 answers

No, nothing has changed since iOS7, and this will not change in the future, this is a conceptual problem, the iOS application does not have control over the public functions of the device, think that you have disabled “taking screenshots” while other applications do it !! How will this app know about this?

The best you can do is use a configuration profile as indicated in the actual @QED answer.

+2
source

You can restrict the configuration profile as described in the related question.

" ", 27, iPhone. , , - allowScreenShot, 30.

, , . , - , / . , .

API. http://www.modmyi.com IRC . , API, SO.

!

+1

Source: https://habr.com/ru/post/1768856/


All Articles