gpt4 book ai didi

ios - 错误 : perhaps the designated entry point is not set?

转载 作者:搜寻专家 更新时间:2023-11-01 05:46:10 26 4
gpt4 key购买 nike

大家好我关注THIS很棒的教程,但我没有下载 stater 项目,因为我想创建一个不同的应用程序我已经完成了我只想弹出 CenterViewController 和左侧 ViewController 的所有内容在 ContainerViewController 但我在我的控制台中得到了这个:

2014-11-19 14:04:46.838 SlideTable[3612:87749] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?

我也试过THIS回答但得到相同的结果。

这个错误意味着我已经完成了作者在启动项目时提供的所有必需的事情,但我没有找到任何解决方案。

这是 may 项目的代码。

AppDelegate.swift

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
window = UIWindow(frame: UIScreen.mainScreen().bounds)

let containerViewController = ContainerViewController()

window!.rootViewController = containerViewController
window!.makeKeyAndVisible()

return true
}

我错过了什么吗?如果需要,我会提供更多信息。

最佳答案

我遇到了同样的问题,我找到了解决方案:

  1. 选择 Main.storyboard;
  2. 打开属性检查器并在“ View Controller ”部分单击是初始 View Controller

根据相同的错误消息,此操作对我来说效果很好。

关于ios - 错误 : perhaps the designated entry point is not set?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27013543/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com