NSMutableArray 排序 - 错误消息
我有一个由 XMLParser
生成的 NSMutableArray
,我想按类别对表进行排序并删除重复的 abbcbc = abc
。一切正常,但是当我单击 XMLParser
生成的最后一个条目(此处为 c)时,在第一个表中我可以读取它,但在排序表中我出现以下错误:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<item 0x68a7e20> setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key rss.'
*** First throw call stack: (0x1849052 0x1cdcd0a 0x1848f11 0xd02032 0xc73f7b 0xc73eeb 0xc82b 0xd32a35 0x308f6 0x3cab0 0xd3102d 0xb94a
0x38571d 0x385952 0xc7a86d 0x181d966 0x181d407 0x17807c0 0x177fdb4
0x177fccb 0x2173879 0x217393e 0x2f5a9b 0x287d 0x27f5) terminate called
throwing an exceptionsharedlibrary apply-load-rules all (gdb)
PS:您需要将链接放入应用程序中以读取 XML,并且您必须输入您想要的登录名/密码(我很快就会完成)再次感谢
编辑:我用我的代码删除了文件夹,因为问题是解决了。
I have a NSMutableArray
generated by XMLParser
, I would like to sort the table by category and delete the duplicates abbcbc = abc
. Everything works, but when I click on the last entry generated by the XMLParser
(here c), in the first table i can read it, but in the sort table i've the following error :
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<item 0x68a7e20> setValue:forUndefinedKey:]: this class is
not key value coding-compliant for the key rss.'
*** First throw call stack: (0x1849052 0x1cdcd0a 0x1848f11 0xd02032 0xc73f7b 0xc73eeb 0xc82b 0xd32a35 0x308f6 0x3cab0 0xd3102d 0xb94a
0x38571d 0x385952 0xc7a86d 0x181d966 0x181d407 0x17807c0 0x177fdb4
0x177fccb 0x2173879 0x217393e 0x2f5a9b 0x287d 0x27f5) terminate called
throwing an exceptionsharedlibrary apply-load-rules all (gdb)
if you need the code, it is here and the XML is here.
PS : you need to put the link in the application to read to XML, and you must enter want you want for Login/Password (i'll make it soon) thank again
EDIT : I delete the folder with my code since the problem was solved.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过查看 item.h 文件?看看你是否已经合成了“rss”属性。
Have you tried looking into the item.h file? Look if you have synthesized the "rss" property.