-[__NSDictionaryI setObject:forKey:]: unrecognized selector sent to instance
来源:互联网 发布:淘宝收到假货怎么投诉 编辑:程序博客网 时间:2024/06/16 05:46
今天写代码时,出现这样的问题:
-[__NSDictionaryI setObject:forKey:]: unrecognized selector sent to instance 0x7fb812d3f0c0
解决方法:
NSDictionary是不可变字典,一旦赋值就无法改变。而我在不可变字典赋值后改变了它,我的代码如下
self.dictArray[edit_row][@"ss_detail"]=content;
上面代码是进行赋值操作的,记住,我们是不能对NSDictionary
这样操作的,我们可以使用NSMutableDictionary
0 0
- -[__NSDictionaryI setObject:forKey:]: unrecognized selector sent to instance
- iOS报-[__NSDictionaryI objectAtIndexedSubscript:]: unrecognized selector sent to instance 0x15f762920
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance
- unrecognized selector sent to instance 解决办法
- NSString category:unrecognized selector sent to instance
- "unrecognized selector sent to instance *****"的错误
- Bug分析:unrecognized selector sent to instance
- -[NSDecimalNumber isEqualToString:]: unrecognized selector sent to instance
- 绘制Canvas出现Cannot read property 'getContext' of null;
- 第七周项目4队列数组
- 指针数组和数组指针
- 聊聊灰度发布
- LeetCode(110) Balanced Binary Tree
- -[__NSDictionaryI setObject:forKey:]: unrecognized selector sent to instance
- 两个程序的进程间通信小结
- 《转载》android 属性动画Property Animation学习
- python2.7安装
- 《学习日记》原生JS写ajax
- 第7周—项目6 停车场模拟
- 空净行业面临洗礼,谁能脱颖而出?
- 网页滚动时候清楚定时器
- 文件/目录操作(7)——zip、gzip、bzip2、tar命令