为什么我的应用程序在App Switcher中显示为空白屏幕? [英] Why does my app appear as a blank white screen in App Switcher?

查看:91
本文介绍了为什么我的应用程序在App Switcher中显示为空白屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to understand where iOS gets the image from for App Switcher and when. What do I need to change to get control of what appears on App Switcher?

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

Right now, I can set a breakpoint on the first line of didFinishLaunchingWithOptions, my launch screen is visible, but App Switcher shows just a blank white screen with just the green battery rectangle. The App Switcher doesn't seem to pick up any image later in my app either.

我在didFinishLaunchingWithOptions中执行此操作:

I'm doing this in didFinishLaunchingWithOptions:

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

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

and later in a called method (after setting up appropriate views) this:

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。 SFAuthenticationManager.h中的useSnapshotView可用于切换此安全选项。

I discovered that my issue was due a feature in the Salesforce SDK I am using. useSnapshotView in SFAuthenticationManager.h can be used to toggle this security option.

这篇关于为什么我的应用程序在App Switcher中显示为空白屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆