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

查看:134
本文介绍了防止在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?

推荐答案

no 方法可以防止完全截屏。您可以执行 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天全站免登陆