往MainStoryBoard中添加所有控件,默认控件就是布局到整个编辑窗口,没有发现哪里有问题,如果有大牛知道,还请告知。
于是重新拖一个sb,命名为Main.往里面拖一个ViewController。
run,报错:Failed to instantiate the default view controller for UIMainStoryboardFile ‘Main’ - perhaps the designated entry point is not set?
原来说没有设置这个ViewController为Is Initial View controller,勾上。
[iOS]Failed to instantiate the default view controller for UIMainStoryboardFile 'Main'
最新推荐文章于 2023-01-03 10:16:00 发布