[英]iPhone - Multiple instances of an application running?
When i start my app for the first time after installing it and exit before the splash screen disappears, from then on launching from the multitasking menu it comes up with a black screen. 当我在安装应用程序后首次启动我的应用程序,并在启动屏幕消失之前退出时,从多任务菜单启动后,它出现黑屏。 If I click on it from the home screen it loads fine but every time I try from the multitasking menu it is a black screen until I terminate it.
如果我从主屏幕上单击它,它会很好地加载,但是每次我从多任务菜单尝试时,它都是黑屏,直到我终止它。 If I add the UIApplcationExitOnSuspend property to the properties list the black screen continually appears until i restart the device.
如果我将UIApplcationExitOnSuspend属性添加到属性列表,则黑屏会持续出现,直到我重新启动设备。 Any help is appreciated.
任何帮助表示赞赏。
Thanks Sj 谢谢Sj
A couple things: 几件事:
applicationDidFinishLaunching
is running code (you know, like adding a window to the app) while the splash screen is showing. applicationDidFinishLaunching
正在运行代码(您知道,就像在应用程序中添加了一个窗口一样)。 If you suspend it early, it doesn't have a chance. My guess is your likely cause is #1. 我的猜测是您可能的原因是#1。 Give the app more time to do the initial load.
给应用更多时间来进行初始加载。 After that, it should be fine.
之后,应该没问题。 For whatever reason, the first time installing/loading is always the slowest.
无论出于何种原因,首次安装/加载总是最慢的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.