学习IOS学徒第二本,书上说建立项目后,把初始scene删掉,重建一个Table View,这时Run会看到一个空白的Table List。
实际操作中,Run项目黑屏,提示"Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?"
应是删除初始Scene后未重设entry point。网上查到设置entry point方法如下:
选中entry Point的scene, 在其Attributes Inspector中的View Controller栏位,选中”Is Initial View Controller“。
方案原文链接:
http://my.oschina.net/u/936286/blog/316565
Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?
这是因为给你的StoryBoard没有设置默认显示的controller,
解决方法:
本文介绍了解决iOS项目启动出现黑屏并提示错误信息的方法。通过设置Storyboard的入口控制器,可以避免因删除初始场景而导致的应用无法正常加载TableView的问题。

2803

被折叠的 条评论
为什么被折叠?



