2011-11-03 39 views
0

我有一個NSMutableArray生成的XMLParser,我想按類別排序表並刪除重複項abbcbc = abc。一切正常,但是當我點擊由XMLParser(這裏C)產生的最後一個條目,在第一個表,我可以讀出來,但是在排序表,我下面的錯誤:NSMutableArray排序 - 錯誤信息

*** 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) 

,如果你需要代碼,它是here和XML是here

PS:你需要把該鏈接的應用程序讀取到XML,你必須要輸入你想要登錄/密碼(我會讓它很快)再次感謝

編輯:我刪除自問題解決以來我的代碼與文件夾。

回答

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

您是否嘗試過查看item.h文件?看看你是否合成了「rss」屬性。

+0

非常感謝你^^我沒有綜合'rss'屬性,現在它已經修復了!但爲什麼錯誤沒有提前? – JioGray