在我的应用程序中有一个 PointMode
按钮。当我点击它 10 到 11 次时,没有问题, View 就会出现。但之后,它产生了这个错误:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle < Simulator/4.1/Applications/04DF6214-383F-43DA-B2D2-C5B538B0095B/PW.app> (loaded)' with name 'PWPointMode''
我这样称呼该 View 。
PWPointMode *pointController = [[PWPointMode alloc]initWithNibName:@"PWPointMode" bundle:nil];
self.objPointMode = pointController;
[self.navigationController pushViewController:objPointMode animated:YES];
[pointController release];
我的应用程序是通用应用程序
最佳答案
哈林
我向您展示了代码,您可以通过此代码加载新 View 或 Nib ,但您在那里解释为 加载 10-15 次后,查看您的应用程序将显示此消息,以便您 在性能工具中运行您的应用程序并检查是否泄漏了您的资源内存 即将满。由于这个问题,您也会在应用程序崩溃时收到此错误消息。
也许这个对你有用......
关于iphone - 由于 "Could not load NIB in bundle"导致崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6705375/