ios 学习 问题 记录

一、重新加入storyboard 黑屏并且提示以下错误

错误:[Application] Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - pe

解决方案:

1、在general编辑标签中,deployment info 部分,Main interface 弹出的标签中选择对应的storyboard

2、添加视图控制器 在storyboard 的identity inspector 中选择你需要显示的view controller 类

2、在新加入的storyboard 的attribute inspector中勾选 is initial view controller



猜你喜欢

转载自blog.csdn.net/u010693827/article/details/79923485