今天创建了一个ViewController,使用xib文件创建一个view,结果出现下面的错误:
2015-10-21 14:29:51.817iosTest2[26256:1259272] *** Terminating app due to uncaught exception'NSInternalInconsistencyException', reason: '-[UIViewController_loadViewFromNibNamed:bundle:] loaded the "ViewControll" nib but theview outlet was not set.'
*** First throw call stack:
解决:
参考:http://stackoverflow.com/questions/4763519/loaded-nib-but-the-view-outlet-was-not-set-new-to-interfacebuilder