iOS:当应用程序进入后台拨打电话时,如何防止启动画面显示?

时间:2022-09-10 20:20:53

The app that I'm working on is automatically showing the splash screen only when it goes into background to make a call.

我正在处理的应用程序只有在进入后台进行通话时才会自动显示启动画面。

The other functions of going out of the app and becoming active again does not "activate" the splash screen. For example, going out of the app into an external website, phone map or another application and coming back into the app will show user the previous state and does not show the splash screen.

退出应用程序并再次变为活动状态的其他功能不会“激活”启动画面。例如,从应用程序进入外部网站,电话地图或其他应用程序并返回应用程序将向用户显示之前的状态,并且不显示启动画面。

Is this something that can be controlled by the app side or is this an iOS feature that apple automatically handles when a phone call is made?

这是可以由应用程序端控制的东西,还是苹果在拨打电话时自动处理的iOS功能?

I have managed the leaks on the app side and all is good now so it can't be anything to do with memory management on the app side. Is there anything else that can be done indirectly so that the splash screen will not show?

我已经管理了应用程序端的泄漏,现在一切都很好,所以它与应用程序端的内存管理无关。还有其他什么可以间接完成,以便不会显示启动画面?

1 个解决方案

#1


3  

The launch image is not a "splash screen". The launch image is used to prevent show a black screen while the app is loaded, and you should use it with an in-app screen which gives the feeling of a quick launch. If you don't show the launch image, you will get a black screen.

发布图像不是“闪屏”。启动图像用于防止在加载应用程序时显示黑屏,您应该将其与应用程序内的屏幕一起使用,这样可以快速启动。如果您没有显示启动图像,则会出现黑屏。

Workaround

So, as workaround, my suggestion is that you take an static snapshot of your App, something generic (like the background and toolbars) and use it as launch images. This will give the appearance that the app start immediately, without "splash image". This is what Apple apps do, you can see this in apps like Stocks or Settings.

所以,作为解决方法,我的建议是你拍摄你的应用程序的静态快照,一些通用的(如背景和工具栏)并将其用作启动图像。这将给出应用程序立即启动的外观,而不会出现“启动图像”。这就是Apple应用程序的功能,您可以在Stocks或Settings等应用程序中看到这一点。

iOS:当应用程序进入后台拨打电话时,如何防止启动画面显示?

You see?. The left screen is how your launch image should look.

你看?。左侧屏幕是您的启动图像的外观。

Check this Apple documentation iOS Human Interface guidelines to understand this subject.

查看此Apple文档iOS人机界面指南以了解此主题。

Good luck!

祝你好运!

#1


3  

The launch image is not a "splash screen". The launch image is used to prevent show a black screen while the app is loaded, and you should use it with an in-app screen which gives the feeling of a quick launch. If you don't show the launch image, you will get a black screen.

发布图像不是“闪屏”。启动图像用于防止在加载应用程序时显示黑屏,您应该将其与应用程序内的屏幕一起使用,这样可以快速启动。如果您没有显示启动图像,则会出现黑屏。

Workaround

So, as workaround, my suggestion is that you take an static snapshot of your App, something generic (like the background and toolbars) and use it as launch images. This will give the appearance that the app start immediately, without "splash image". This is what Apple apps do, you can see this in apps like Stocks or Settings.

所以,作为解决方法,我的建议是你拍摄你的应用程序的静态快照,一些通用的(如背景和工具栏)并将其用作启动图像。这将给出应用程序立即启动的外观,而不会出现“启动图像”。这就是Apple应用程序的功能,您可以在Stocks或Settings等应用程序中看到这一点。

iOS:当应用程序进入后台拨打电话时,如何防止启动画面显示?

You see?. The left screen is how your launch image should look.

你看?。左侧屏幕是您的启动图像的外观。

Check this Apple documentation iOS Human Interface guidelines to understand this subject.

查看此Apple文档iOS人机界面指南以了解此主题。

Good luck!

祝你好运!