When the background setting of the background menu (for example, the "Home" button), how to change the elements on the top view controller before iOS takes a picture and starts the animation to display the next screen?
I ask because I am writing an application that requires HIPAA compliance, and I am concerned that the snapshot that the OS takes to perform this animation sometimes contains sensitive data that should not be displayed even for a second of a second when the application exits later.
I know that view controllers have lifecycle methods such as viewWillDisappear that can be useful, but I have a lot of controllers, and I would prefer just something in my app deler for this (for example, adding an opaque full-screen UIImageView overlay), instead of writing your own code for this in each last controller.
I tried putting the code creating the overlay in applicationWillResignActive , and I was digging Apple and Google docs, but it doesn't work. I suspect that a screenshot will be taken before the application can update the screen.
Thanks!
source share