Calling segue programmatically not working

后端 未结 1 1810
暗喜
暗喜 2021-01-26 00:12

I am trying to make a splash screen. I have a view that has a background image being drawn onto it and then another view I want to transition to after a few seconds. I am trying

相关标签:
1条回答
  • 2021-01-26 00:37

    Normally, you need a navigation controller in order to use segue.

    Highlight your SplashViewController object inside the Storyboard and go to

    Editor -> Embeded In -> Navigation Controller

    enter image description here

    After that, remove the code suggested by Clement and try running the project again, you should get the result that you expected.

    0 讨论(0)
提交回复
热议问题