适用于iOS 4的Circumvent截图 [英] Circumvent screenshot for iOS 4

查看:138
本文介绍了适用于iOS 4的Circumvent截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在关闭应用程序之前清除视图,以更改启动图像,以便下次输入应用程序时,它不会显示一些不安全的数据。

I would like to clear a view before an application is switched away from, to change the launch image so that the next time the app is entered it will not display some insecure data.

iOS 4提供 applicationDidEnterBackground applicationWillResignActive ...但是,这些似乎都不能在我有机会清除视图之前阻止截屏。

iOS 4 provides applicationDidEnterBackground and applicationWillResignActive...however, neither of these seem to be able to prevent the screenshot from being taken before I have a chance to clear the view.

推荐答案

-applicationDidEnterBackground 在屏幕截图之前调用。事实证明我只是不正确地隐藏了我的观点。

-applicationDidEnterBackground does get called before the screenshot. Turns out I was simply hiding my view improperly.

清除视图的一个简单方法是在我的 UIView上设置隐藏属性

A simple way to clear the view was to set the hidden property on my UIView.

这篇关于适用于iOS 4的Circumvent截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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