如何防止ios11中的屏幕记录 [英] how to prevent screen record in ios11
本文介绍了如何防止ios11中的屏幕记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于某些原因,我们的APP不希望人们记录屏幕,但是在ios11中一个新功能可以让用户在那里录制iphone屏幕,所以是否有API或通知指示我用户现在正在录制
谢谢你非常
To some reasons, our APP dont't want people record screen, but in ios11 a new feature can let user record there iphone screen, so is there an API or notification indicate me user is recording now thank u very much
推荐答案
您可以检测屏幕是否正在录制:
You can detect if the screen is being recorded with:
UIScreen.main.isCaptured
// True if this screen is being captured (e.g. recorded, AirPlayed, mirrored, etc.)
您无法使用项目设置阻止它,但您可以使用模式或其他东西来请求用户禁用它。不确定如何通过AppStore提交进行锻炼。
You can't prevent it using project settings, but you could use a modal or something to request the user to disable it. Not sure how that might workout with your AppStore submission.
这篇关于如何防止ios11中的屏幕记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文