Applications are expected to have a root view controller at the end of applicati

IDE:xcode4.2

新建了一个 empty Application,这种模板很少用于创建应用程序,主要是想通过从开开始创建应用程序,好好的理解多视图应用的构造方式。话不多说,回到正题


Applications are expected to have a root view controller at the end of applicati_第1张图片


因为是个empty 项目,所以有些东西需要自己手动创建。
之后新建了一个 MainWindow.xib和相应的控制器(xxxController.h,xxxController.m),但是运行的时候屏幕一直都是。查看Log输出
Applications are expected to have a root view controller at the end of applicatin
信息,最后我的问题解决方式是发现 info.plist需要添加一个 Main xib file base name

Applications are expected to have a root view controller at the end of applicati_第2张图片



参考资料:
http://stackoverflow.com/questions/7520971/applications-are-expected-to-have-a-root-view-controller-at-the-end-of-applicati

你可能感兴趣的:(application,empty)