iOS 6.1
在设备上运行没问题,但在模拟器中运行时我得到:
NSInternalInconsistencyException',原因:'无法在包中加载 NIB
你有过这样的经历吗?
问候克里斯
iOS 6.1
在设备上运行没问题,但在模拟器中运行时我得到:
NSInternalInconsistencyException',原因:'无法在包中加载 NIB
你有过这样的经历吗?
问候克里斯
Obviously the runtime could not find the right nib file 'Could not load NIB in bundle'
I just did not understand why I would run on the device and not in the emulator. The reason was that I at some point renamed the controller and the NIB file, without deleting and cleaning the app on the device. Therefore the old NIB file was probably stil on the device and therefore working, but when running a new instance of the app on the emulator, this is when the error come about.
One could argue that Xcode should have noticed this, but well well :-)
Therefore clean your project when you rename a NIB file.
Happy coding
看起来您正在尝试实例化一个不存在的笔尖。笔尖是否包含在项目成员中?
还要检查 nib 文件名的大小写。