[英]Launch Screen takes too long to disappear
I just started learning Swift. 我刚开始学习Swift。 It's been only a month, and I can assure you that I'm not doing anything fancy.
这只是一个月,我可以向你保证,我没有做任何花哨的事情。 Yet, the launch screen on the simulator is taking a long time to disappear before the app starts.
然而,在应用程序启动之前,模拟器上的启动屏幕需要很长时间才能消失。 It stays on for at least 5 seconds, and it takes another 2.5 seconds to slowly fade away.
它会持续至少5秒钟,然后再慢慢消退需要2.5秒。 And as it fades out, the first view of the app slowly fades in. It was working fine (took only a fraction of a second) until a couple of days ago when this started happening suddenly while I was working on a sample app.
随着它逐渐淡出,应用程序的第一个视图慢慢消失。它工作正常(只花了一秒钟),直到几天前,当我开始使用示例应用程序时突然发生这种情况。 Here are things I've confirmed:
以下是我确认过的事情:
I was working on a simple practice program. 我正在研究一个简单的练习计划。 It ran successfully just like it did numerous times before.
它成功运行就像以前一样。 Then, I made some minor changes to the code (nothing fancy --- just some trivial changes.) And the next time I pressed the RUN button, I noticed that the launch screen took a considerably longer to disappear.
然后,我对代码做了一些小改动(没什么好看的 - 只是一些微不足道的改变。)下次我按下RUN按钮时,我注意到启动屏幕需要相当长的时间才能消失。 After that, it just won't go back to the way it was.
在那之后,它不会再回到现在的样子。
Could someone please advise the cause of the problem and the solution? 有人可以告诉问题的原因和解决方案吗? Thank you very much.
非常感谢你。
You may have Slow Animations turned on. 您可以启用慢动画。 Go to the simulation and check under Debug:
转到模拟并在Debug下检查:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.