This document: Preventing sensitive information from appearing in the task switch describes how to present the view controller in applicationDidEnterBackground to hide critical information in the task switch:
- (void)applicationDidEnterBackground:(UIApplication *)application
{
UIViewController *blankViewController = [UIViewController new];
blankViewController.view.backgroundColor = [UIColor blackColor];
[self.window.rootViewController presentViewController:blankViewController animated:NO completion:NULL];
}
However, in iOS 8, this exact code does not work, and a simple, simple, black view controller is not displayed until the application becomes active again. The task switcher shows confidential information and doesn't hide anything. There is no animation in this code, so I can’t understand - why is this happening?