2014-07-25 4 views
0

내가 범용 iOS 앱과 아이 패드 버전에서 NIB를로드 할 수 없습니다 것은 내가 다음과 같은 방법으로로드 PerformancePair.xib라는 인터페이스를 사용 다음과 같은 오류가 :iOS 앱은 번들

 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.... 

당신은 내가 제대로 "performPair"으로 RestorationID라는 것을 한 것을 볼 수 있습니다 내 PerformancePair.xib 내 빌드 단계에있다.

enter image description here

내가 여기 실종 다른 어떤

?

답변

3

loadNibNamed:에서 nib 파일의 이름을 사용해야합니다.

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

감사합니다. – CodeGuy