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

时间:2014-01-29 22:01:57

标签: ios objective-c

我正在尝试了解iOS从App Switcher获取图像的位置以及何时。我需要更改什么来控制App Switcher上显示的内容?

现在,我可以在didFinishLaunchingWithOptions的第一行设置断点,我的启动屏幕可见,但App Switcher只显示一个空白的白色屏幕,只有绿色的电池矩形。 App Switcher似乎没有在我的应用程序中随后拾取任何图像。

我在didFinishLaunchingWithOptions中执行此操作:

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

以及后来的一个被调用的方法(在设置了适当的视图之后):

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];

1 个答案:

答案 0 :(得分:2)

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

相关问题