xcode “启动屏幕可能没有触发转场。LaunchScreen.storyboard”?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33980072/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:15:55  来源:igfitidea点击:

"Launch screens may not have triggered segues. LaunchScreen.storyboard"?

xcode

提问by Brandon

Launch screens may not have triggered segues. LaunchScreen.storyboard

启动屏幕可能没有触发 segue。LaunchScreen.storyboard

What does it mean? I am using Xcode and I am trying to do a segues.

这是什么意思?我正在使用 Xcode,并且我正在尝试执行 segues。

回答by M. Porooshani

You cannot perform segues inside a launch screen story board.

您不能在启动屏幕故事板内执行转场。

LaunhScreen.storyboardfiles are static and cannot run codes, segues or other forms of animation. You should implement you UI inside Main.storyboardor another storyboard set as your main storyboard.

LaunhScreen.storyboard文件是静态的,不能运行代码、转场或其他形式的动画。您应该在内部实现您的 UIMain.storyboard或将另一个故事板设置为您的主故事板。

P.S.: Using LaunchScreen storyboards

PS:使用 LaunchScreen 故事板

回答by umairhhhs

You can't have segues to LaunchScreen.storyboard. Try to play with Main.storyboard.

您不能对 LaunchScreen.storyboard 进行 segue。尝试使用 Main.storyboard。

LaunchScreen.storyboard

LaunchScreen.storyboard

is for splash screen.

用于启动画面。

Main.storyboard

主故事板

for adding scenes and more.

用于添加场景等。