下面列出了什么错误?
2011-02-23 21:24:12.218 Success[7238:207] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/jimkillen12/Library/Application Support/iPhone Simulator/4.2/Applications/BAA5E0E7-AF12-4301-A4F8-1B9797C9E82D/Success.app> (loaded)' with name 'MainWindow-iPad''
最佳答案
项目中缺少您的NIB文件之一,请添加所需的NIB文件:
在构建阶段
+
通过
Shift+Cmd+K
清理构建,然后运行。P.S. 在调用
initWithNibName:@"ViewNameController"
时,还要确保使用NIB文件的准确拼写可能是,您在通话中使用小写字母命名了您的NIB,或者可能还包括了扩展名.xib,而不是必需的。
关于ipad - 无法在 bundle 中加载NIB: 'NSBundle',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5099707/