简体   繁体   English

在应用程序启动结束时的root视图控制器,默认为cocos2d viewcontroller而不是另一个Storyboard视图

[英]root view controller at the end of application launch, defaulting to cocos2d viewcontroller instead of another storyboard view

This question is based on this tutorial 这个问题基于本教程

The linked tutorial is on how to use cocos2d along with Storyboards. 链接的教程介绍了如何与故事板一起使用cocos2d。 My problem is that, with a new and clean project and the tutorial followed perfectly, the app launches with the default cocos2d-helloworld screen instead of an interfacebuilder screen I made, and the console is logging 我的问题是,有了一个全新且干净的项目,并且教程完美地遵循了该步骤,该应用程序使用默认的cocos2d-helloworld屏幕而不是我创建的interfacebuilder屏幕启动,并且控制台正在记录

Application windows are expected to have a root view controller at the end of application launch

How do I set the intended window to be launched at the beginning instead? 如何设置要在开始时启动的预期窗口? Any tips on what the root view controller means and how to fix it? 有关根视图控制器的含义以及如何修复的任何提示?

search in that tutorial "Adding a Storyboard to your Project" there you set the main story board, this story board is the rootViewController you miss 在该教程“向项目中添加情节提要”中进行搜索,然后在其中设置主情节提要,该情节提要是您错过的rootViewController

and more lines above you can see the topic "Connecting the Storyboard View Controllers" 上面的更多行中,您可以看到“连接Storyboard View控制器”主题

maybe you can follow again the tutorial with making all steps. 也许您可以按照所有步骤再次学习本教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “禁用故事板后,应用程序窗口应在应用程序启动结束时具有根视图控制器” - “Application windows are expected to have a root view controller at the end of application launch” occurred after I disable storyboard 应用程序窗口在应用程序启动结束时有望具有一个根视图控制器 - Application windows are expected to have a root view controller at the end of application launch 如何从单视图应用程序启动cocos2D游戏 - How to launch a cocos2D game from single view app 选择器视图cocos2d - picker view cocos2d iPhone-卸载在View Controller中运行的cocos2d游戏 - iPhone - Unloading a cocos2d game that is running inside a View Controller 加载一个UIKit视图controller和.xib作为Cocos2D场景 - Load a UIKit view controller and .xib as an Cocos2D scene 故事板中的根视图控制器 - Root view controller in a Storyboard 如何创建另一个视图? Cocos2d - How can i create another view? Cocos2d 应用程序窗口应该在应用程序启动结束时有一个根视图控制器(Iphone 应用程序) - Application windows are expected to have a root view controller at the end of application launch (Iphone App) 出现“在应用程序启动结束时,应用程序窗口应具有根视图控制器”错误 - Getting “Application windows are expected to have a root view controller at the end of application launch” error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM