为什么我的应用程序在App Switcher中显示为空白屏幕?

我试图了解iOS从何处获取应用切换器的图像。 我需要改变什么才能控制App Switcher上显示的内容?

现在,我可以在didFinishLaunchingWithOptions的第一行设置一个断点,我的启动屏幕是可见的,但应用程序切换器只显示一个空白的白色屏幕,只有绿色的电池矩形。 应用程序切换器似乎不会在我的应用程序稍后拿起任何图像。

我在didFinishLaunchingWithOptions中执行此操作:

self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 

后来在一个被调用的方法中(在build立适当的视图之后):

 MMDrawerController * drawerController = [[MMDrawerController alloc] initWithCenterViewController:centerView leftDrawerViewController:leftDrawer]; drawerController.maximumLeftDrawerWidth = LeftDrawerWidth; drawerController.closeDrawerGestureModeMask = MMCloseDrawerGestureModeTapCenterView; [imageView addSubview:[self staticToolbar]]; [imageView addSubview:[self dsaToolbar]]; self.window.rootViewController = drawerController; [self.window makeKeyAndVisible]; [[UIApplication sharedApplication] setStatusBarHidden:NO]; [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; 

我发现我的问题是由于我正在使用的Salesforce SDK中的一个function。 SFAuthenticationManager.h中的useSnapshotView可用于切换此安全选项。