I want to prevent taking screenshot of a page in app. how to do it programmatically so that screenshots cannot be taken.
Found code to detect screenshot. Can it be
There is absolutely no way to completely prevent user from taking screenshot during the app process, and that's because you do not have access to delete photos in the photo gallery of the user. It would totally be a security issue if you could access your user's photos.
However, there are ways to partially prevent screenshots, as described here: Prevent screen capture in an iOS app