防止在 iOS 应用中截屏
出于安全原因,我需要防止我的应用用户截屏.我显示的内容是机密的,不应复制到设备上.我在 Stack Overflow 上看到了一个答案,但适用于 Android.
I need to prevent screen capture by users of my app, for security reasons. The contents I display are confidential and should not be copied onto the device. I saw one answer on Stack Overflow, but for Android.
是否可以在 iOS 中以某种方式阻止屏幕捕获?
Is it possible somehow in iOS to prevent screen capture?
虽然通过点击几个按钮将屏幕截图捕获到图库中对用户来说是一个非常有用的功能,但也有一个有限的要求来阻止它.有什么指点吗?
While capturing the screenshot into the gallery by the click of few buttons is a very useful feature for the user, there is a limited requirement to prevent it too. Any pointers?
没有 方法可以完全阻止截取屏幕截图.您可以执行 Snapchat 所做的事情,即要求用户触摸屏幕以查看您显示的任何信息.这是因为系统截图事件中断了触摸.这不是一个完美的方法,你不能阻止用户 100% 的时间截取屏幕截图.
There's no way to prevent taking screenshots entirely. You can do what Snapchat does, which is by requiring the user to be touching the screen to view whatever information you're displaying. This is because the system screenshot event interrupts touches. It's not a perfect method and you can't prevent users from taking screenshots 100% of the time.
更多详情:iOS检测截图?