当前位置:网站首页>解决:Thread 1:[<*>setValue:forUndefinedKey]:this class is not key value coding-compliant for the key *
解决:Thread 1:[<*>setValue:forUndefinedKey]:this class is not key value coding-compliant for the key *
2022-07-01 04:42:00 【RRJia】
问题:运行程序崩溃,报错:“Thread 1: [<*> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key **.”,截图如下:

原因:在kvc映射中,映射的字段名和个数不一致导致的。
解决方案:复写“func setValue(_ value: Any?, forUndefinedKey key: String)”方法。
边栏推荐
- JS rotation chart
- JVM栈和堆简介
- Summary of testing experience - Testing Theory
- Solve the problem that the external chain file of Qiankun sub application cannot be obtained
- Common UNIX Operation and maintenance commands of shell
- RuntimeError: mean(): input dtype should be either floating point or complex dtypes.Got Long instead
- PR 2021 quick start tutorial, learn about the and functions of the timeline panel
- Tencent has five years of testing experience. It came to the interview to ask for 30K, and saw the so-called software testing ceiling
- 扩展-Fragment
- LeetCode_53(最大子数组和)
猜你喜欢

先有网络模型的使用及修改

分布式事务-解决方案

分布式锁的实现
![[godot] unity's animator is different from Godot's animplayer](/img/51/48f40a7b6736d7f78040eabbbd3395.jpg)
[godot] unity's animator is different from Godot's animplayer

Difficulties in the development of knowledge map & the importance of building industry knowledge map
![AssertionError assert I.ndim == 4 and I.shape[1] == 3](/img/b1/0109bb0f893eb4c8915df36c100907.png)
AssertionError assert I.ndim == 4 and I.shape[1] == 3

【硬十宝典】——1.【基础知识】电源的分类

Applications and features of VR online exhibition

手动实现一个简单的栈

Dual Contrastive Learning: Text Classification via Label-Aware Data Augmentation 阅读笔记
随机推荐
How to use maixll dock
2022年煤气考试题库及在线模拟考试
Odeint and GPU
The index is invalid
Basic exercise of test questions hexadecimal to decimal
Seven crimes of counting software R & D Efficiency
pytorch神经网络搭建 模板
Maixll-Dock 快速上手
解决qiankun中子应用外链文件无法获取
Question bank and online simulation examination for special operation certificate of G1 industrial boiler stoker in 2022
科研狗可能需要的一些工具
2022 question bank and answers for safety production management personnel of hazardous chemical production units
先有网络模型的使用及修改
How to do the performance pressure test of "Health Code"
Day 52 - tree problem
LM小型可编程控制器软件(基于CoDeSys)笔记十九:报错does not match the profile of the target
pytorch 卷积操作
[2020 overview] overview of link prediction based on knowledge map embedding
Dede collection plug-in does not need to write rules
神经网络-使用Sequential搭建神经网络