当前位置:网站首页>解决: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)”方法。
边栏推荐
- 2022 Shanghai safety officer C certificate examination question simulation examination question bank and answers
- 如何看待智慧城市建设中的改变和机遇?
- Summary of acl2021 information extraction related papers
- Basic usage, principle and details of session
- How to use maixll dock
- The junior college students were angry for 32 days, four rounds of interviews, five hours of soul torture, and won Ali's offer with tears
- Difference between cookie and session
- 【硬十宝典目录】——转载自“硬件十万个为什么”(持续更新中~~)
- Introduction to JVM stack and heap
- 2022 a special equipment related management (elevator) simulation test and a special equipment related management (elevator) certificate examination
猜你喜欢

2022年G1工业锅炉司炉特种作业证考试题库及在线模拟考试

Kodori tree board

C -- array

Dataloader的使用

2022 tea master (intermediate) examination question bank and tea master (intermediate) examination questions and analysis

2022年上海市安全员C证考试题模拟考试题库及答案

Research on medical knowledge atlas question answering system (I)

2022 gas examination question bank and online simulation examination

神经网络-非线性激活

Question bank and answers for chemical automation control instrument operation certificate examination in 2022
随机推荐
LeetCode_ 53 (maximum subarray and)
How to do the performance pressure test of "Health Code"
Fitness without equipment
Summary of testing experience - Testing Theory
Pytorch(三) —— 函数优化
Caijing 365 stock internal reference | the first IPO of Beijing stock exchange; the subsidiary of the recommended securities firm for gambling and gambling, with a 40% discount
2022 question bank and answers for safety production management personnel of hazardous chemical production units
Openresty rewrites the location of 302
Software testing needs more and more talents. Why do you still not want to take this path?
神经网络-非线性激活
2022 G2 power station boiler stoker examination question bank and G2 power station boiler stoker simulation examination question bank
Odeint and GPU
The index is invalid
Section 27 remote access virtual private network workflow and experimental demonstration
Leecode record 1351 negative numbers in statistical ordered matrix
pytorch神经网络搭建 模板
【FTP】FTP常用命令,持续更新中……
STM32扩展版 按键扫描
PgSQL failed to start after installation
Pytorch(一) —— 基本语法