`

FAQ: *** Terminating app due to uncaught exception 'NSUnknownKeyException', reas

 
阅读更多

FAQ: *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key itemName.' (permalink )

答案:

If you're using NIB files / Interface Builder, what this error message REALLY means is:

"Your NIB file has a GUI element that's connected (via the Outlets screen) to an outlet in one of your source files that doesn't exist"

i.e. it usually happens when you change the name of an IBOutlet variable in your source file, and forget to change your NIB file to reflect the change.

(sadly, Interface Builder isn't good enough to automatically rename the connection, as it is supposed to do - you MUST do it manually)

分享到:
评论

相关推荐

    ios NSInternalInconsistencyException 出现原因以及解决办法

    Terminating app due to uncaught exception 'NSInternalInconsistencyException' ///继续看下去如: reason: 'UITableView dataSource returned a nil cell for row at index path:... ... ///找到这段英文中出现...

    ios-LLSlideViewController.zip

    2.Assertion failure and Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No view controller managing visible view. detail in ...

    KCOrderedAccessorFix:修复“ CoreDataGeneratedAccessors”用于有序,多对多关系

    除了大多数访问器的无法识别的选择器之外,以下是常见的例外情况: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSOrderedSet intersectsSet:]: set argument is...

    计算机网络实验报告

    DCE(Data Circuit-terminating Equipment)设备如交换机普通口、HUB普通口等。 6. **制作步骤详解:** - 准备材料。 - 使用压线钳剥离线缆外皮。 - 按照标准排列双绞线。 - 剪齐导线。 - 测试线缆长度并进行...

    saa-c01.pdf

    It is suitable for storing session data due to its ability to handle large volumes of reads and writes with consistent, single-digit millisecond response times. Additionally, DynamoDB automatically ...

    oracle 11g rac terminating the instance due to error 481 Doc ID 1383737.1

    PMON (ospid: nnnn): terminating the instance due to error 481 可能原因 根据Oracle官方文档,错误481可能是由于以下几种原因引起的: 1. Link local IP (169.254.x.x) is being used by other adapter/...

    运行UG提示Fatal error detected unable to continue的解决方法

    - **手动替换丢失的文件**:从相同版本的Windows系统中复制psapi.dll文件,并将其放置在UGII目录下,确保权限设置正确。 - **使用系统文件检查器工具(sfc /scannow)**:这一命令可以帮助扫描并修复Windows系统中的...

    帧中继配置(多点和P2P).pdf

    3. **灵活性:**帧中继支持多种不同的连接方式,包括点对点(Point-to-Point, P2P)和多点到多点(Multipoint to Multipoint)连接。 #### 帧中继网络设备 帧中继网络主要由两种类型的设备组成: 1. **数据终端设备...

    华为笔试题,很全很经典

    - **DTE与DCE**:DTE(Data Terminal Equipment)和DCE(Data Circuit-terminating Equipment)是数据通信系统中的两个基本组成部分。DTE通常指的是计算机或终端设备,而DCE则指的是调制解调器或其他类型的通信设备...

    TiIOS8WebviewFix:防止带有 WebViews 的 iOS8 iPad 应用程序崩溃

    Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController () should have a non-nil sourceView or barButtonItem set before the presentation occurs.' ...

    计算机网络测试题目 英语题目

    - **Selective Repeat (SR) 协议**:是一种滑动窗口协议,允许接收方选择性地确认丢失或损坏的数据包,而不是简单地重传所有数据包。 - 在SR协议中,发送方维护一个滑动窗口,只在这个窗口内的数据包才被认为是...

    searchDisplayController 引起的数组越界处理办法

    下面把searchDisplayController 引起的数组越界处理办法给大家分享如下...Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0

    sidebar-ios14:如何使用新的iOS 14边栏UI元素的示例

    侧边栏iOS 14 这是一个示例...已知错误以紧凑模式启动应用程序,然后将其更改为常规模式会导致以下错误: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unexpected vie

    C++程序设计编程实例大全.doc

    - **头文件**: `#include<iostream>` 表示引入了输入输出流库,允许我们使用标准输入输出设备。 - **主函数**: `main()` 是程序的入口点,它返回一个整型值。 - **标准输出**: `std::cout` 用于向标准输出设备(通常...

    ios EXC_BAD_ACCESS错误调试

    2012-11-28 13:22:08.911 PropMemFun [2132:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CFString respondsToSelector:]: message sent to deallocated ...

    ATA present

    - **3.3.10 Device Terminating Data Out Burst**: 设备终止输出数据的突发传输。 ### 四、Parallel Transport Protocol 这部分讨论了并行传输协议,该协议定义了数据如何在主机和设备之间传输的具体步骤和规则。...

    低仿微信二维码扫描

    fix crash ---- Terminating app due to uncaught exception NSInvalidArgumentException , reason: [AVCaptureMetadataOutput setMetadataObjectTypes:] unsupported type found. Use ...

Global site tag (gtag.js) - Google Analytics