我正在添加一个新的 Storyboard引用:
error: Main.storyboard references the initial view controller of newStoryBoard.storyboard, but no designated entry point was found.
有人知道我为什么会收到这个错误吗?
非常感谢您的帮助。
最佳答案
这是一个 Storyboard引用,指向另一个名为 newStoryBoard
的 Storyboard。为了让 segue 工作,它需要知道应该从那个 Storyboard中打开哪个 View Controller 。
打开newStoryBoard.storyboard
,选择合适的 View Controller ,并在右侧的属性面板中勾选Is Initial View Controller框:
或者,您可以在 Storyboard引用属性中设置Referenced Id。将其设置为您要打开的 View Controller 的 Storyboard ID,您应该已准备就绪。
关于iOS:Main.storyboard 引用初始 View Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43901727/