How to disable screen capture or avoid screenshot taking programmatically in iOS

Is there any API or Opensource library to disable screenshot taking in my app / view controller for iOS 8/9 swift language.

So that the screen which contains secure information or data can be avoid from taking screenshot by users.

No. But try the "Snapchat App" Solution.


User has to touch and hold the screen to see you view controller. If he trys to make a screenshot ios invoke touchesCancelled.


If this is invoked you have to blank you screen or somethinge else to anomynus your view.


https://developer.apple.com/library/content/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/multitouch_background/multitouch_background.html

What do you plan to do if they point a camera at the screen?

How to disable screen capture or avoid screenshot taking programmatically in iOS
 
 
Q