NSMutableArray 排序 - 错误消息

发布于 2024-12-13 13:44:54 字数 1068 浏览 0 评论 0原文

我有一个由 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)

如果您需要代码,位于此处,XML 为此处

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜巴黎 2024-12-20 13:44:54
[<item 0x68a7e20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key rss

您是否尝试过查看 item.h 文件?看看你是否已经合成了“rss”属性。

[<item 0x68a7e20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key rss

Have you tried looking into the item.h file? Look if you have synthesized the "rss" property.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文