错误警告: warning: Unsupported Configuration: Scene is unreachable due to lack of entry points and does not have an identifier for runtime acce ...
错误警告:
warning: Unsupported Configuration: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:.问题产生过程:
1.新建一个名称为test的storyboard类型的文件。
2.test.storyboard添加View Controller,并设置View Controller下View的背景颜色Background为深蓝色。
3.设置Main Interface为test.storyboard。
4.启动调试,ios模拟器下显示为黑**面。
原因分析:
默认新建的storyboard没有设置为Is Initial View Controller(初始视图控制器),也就是说test.storyboard没有设置为Is Initial View Controller。
解决办法:
在test.storyboard中,切换到属性检查器,找到View Controller分类下的is initial view controller并勾上它。这样,程序启动后,会加载test.storyboard下的视图。
原标题:初学IOS遇到的问题(一)
关键词:IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。