学习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,
解决方法: