views:

107

answers:

1

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.

A: 

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

akaru