iphone - 由于 "Could not load NIB in bundle"导致崩溃

标签 iphone xcode iphone-sdk-4.1

在我的应用程序中有一个 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/

相关文章:

iOS 应用程序在后台显示通知,但不在前台 iPhone 4s 和操作系统版本 9.3

iphone - 获取 iPhone 与 iPod Touch 时区的最佳实践

ios - UICollectionViewCell 自动布局

iphone - CLLocation再次请求许可

iphone - 从带有自定义单元格的 UITableView 内的 UITextView 打开键盘时避免查看

iphone - iPad 2 上带有 HDMI 适配器的黑条

iphone - 如何转换 NSString 中的日期时间格式?

ios - 找不到 != 的重载 - Swift iBeacon

iphone - iPhone应用程序崩溃:在开发中工作正常,但从iTunes下载时崩溃

iphone - 如何使用 SBJSON iPhone 处理 JSON 响应?