Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Circumvent screenshot for iOS 4

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 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.

like image 525
akaru Avatar asked Jul 28 '10 05:07

akaru


1 Answers

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

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

like image 197
akaru Avatar answered Oct 12 '22 23:10

akaru