iOS应用程序-无法在捆绑包中加载NIB

iOS应用程序-无法在捆绑包中加载NIB,ios,objective-c,nib,Ios,Objective C,Nib,我有一个通用iOS应用程序,iPad版本使用一个名为PerformancePair.xib的界面,我通过以下方式加载该界面: _pairView = [[[NSBundle mainBundle] loadNibNamed:@"performPair" owner:self options:nil] objectAtIndex:0]; 当执行该行时,我得到以下错误: 2014-07-25 12:18:17.432 R2Lm[48976:60b] *** Terminating a

我有一个通用iOS应用程序,iPad版本使用一个名为
PerformancePair.xib
的界面,我通过以下方式加载该界面:

_pairView = [[[NSBundle mainBundle] loadNibNamed:@"performPair" owner:self options:nil] objectAtIndex:0];
当执行该行时,我得到以下错误:

       2014-07-25 12:18:17.432 R2Lm[48976:60b] *** Terminating app due to uncaught exception
        'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 
        'NSBundle </Users/Me/Library/Application Support/iPhone Simulator/7.1-64/Applications/698D6EC4-2150-492B-9935-96B56FF95AE2/R2Lm.app> (loaded)' 
         with name 'performPair''
            *** First throw call stack:
            (
                0   CoreFoundation                      0x0000000101e95495 __exceptionPreprocess + 165
                1   libobjc.A.dylib                     0x000000010199599e objc_exception_throw + 43
                2   CoreFoundation                      0x0000000101e952ad +[NSException raise:format:] + 205
                3   UIKit                               0x000000010079d742 -[UINib instantiateWithOwner:options:] + 775
            ...MORE STACK TRACE HERE....
2014-07-25 12:18:17.432 R2Lm[48976:60b]***由于未捕获的异常而终止应用程序
“NSInternalInconsistencyException”,原因:“无法在捆绑包中加载NIB:
'NSBundle(已加载)'
名称为“performPair”
***第一次抛出调用堆栈:
(
0 CoreFoundation 0x0000000101e95495例外预处理+165
1 libobjc.A.dylib 0x000000010199599e objc_异常_抛出+43
2 CoreFoundation 0x0000000101e952ad+[N异常提升:格式:][205
3 UIKit 0x000000010079d742-[UINib实例化所有者:选项:][775
…这里有更多的堆栈跟踪。。。。
您可以看到,我已使用
将RestorationID正确命名为“performPair”
,并且我的
PerformancePair.xib
处于构建阶段


我还缺少什么?

您必须在
loadNibNamed:
中使用nib文件的名称

_pairView = [[[NSBundle mainBundle] loadNibNamed:@"PerformancePair" owner:self options:nil] objectAtIndex:0];

您必须在
loadNibNamed:
中使用nib文件的名称

_pairView = [[[NSBundle mainBundle] loadNibNamed:@"PerformancePair" owner:self options:nil] objectAtIndex:0];

您必须在
loadNibNamed:
中使用nib文件的名称

_pairView = [[[NSBundle mainBundle] loadNibNamed:@"PerformancePair" owner:self options:nil] objectAtIndex:0];

您必须在
loadNibNamed:
中使用nib文件的名称

_pairView = [[[NSBundle mainBundle] loadNibNamed:@"PerformancePair" owner:self options:nil] objectAtIndex:0];