iOS7からタスクスイッチャーにアプリ画面のサムネイルが表示されるようになったけど、センシティブな情報を扱うアプリだと表示したくないケースもある。
その対処 Tips
- (void)applicationDidEnterBackground:(UIApplication *)application
{
UIViewController *blankViewController = [UIViewController new];
blankViewController.view.backgroundColor = [UIColor blackColor];
[self.window.rootViewController presentViewController:blankViewController animated:NO completion:NULL];
}- (void)applicationWillEnterForeground:(UIApplication *)application
{
[self.window.rootViewController dismissViewControllerAnimated:NO completion:NO];
}まあそうだよね。いっそのこと APIや Info.plistでサポートした方がよくないかね。


