防止在 iOS 应用中截屏 [英] Prevent screen capture in an iOS app

查看:40
本文介绍了防止在 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检测截图?

这篇关于防止在 iOS 应用中截屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆