Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/C8CF9D6E-4B29-416B-8973-A6F18C0CE691/.app> (loaded)' with name 'BGCinemaScheduleCell''
*** First throw call stack:
(0x32d812a3 0x3aa2697f 0x32d811c5 0x34d26571 0x34d2e2b7 0x137e4d 0x13833f 0x1383fd 0x1b6b97 0x34dffdef 0x17218b 0x34bd454d 0x34bb9313 0x34bd07cf 0x34b8c803 0x34936d8b 0x34936929 0x3493785d 0x34937243 0x34937051 0x34936eb1 0x32d566cd 0x32d549c1 0x32d54d17 0x32cc7ebd 0x32cc7d49 0x3688b2eb 0x34bdd301 0xa1385 0x3ae5db20)
libc++abi.dylib: terminate called throwing an exception
好的确有一个名为BGCinemaScheduleCell的实际XIB
我在这里得到了这个错误:
-(void) vLoadMainBundle
{
if ([self class] == [BGBaseTableViewCell class])
{
return;
}
NSString * className = NSStringFromClass([self class]);
[[NSBundle mainBundle] loadNibNamed:className owner:self options:nil];
}
我不知道NSInternalInconsistencyException是什么意思。 className的值是loadNibNamed
答案 0 :(得分:0)
事实证明,xib尚未复制到https://stackoverflow.com/a/5646337/2027232中的答案可用的捆绑资源。
下一个问题是为什么在我创建它时不会将xib复制到bundle资源。