0
当我尝试获取非空变量时,我收到一个SIGABRT。代码:无法从模型中获得价值
NSLog(@"%@", appDelegate.xmlData.magDictionary);
for (Magazine *ibb in appDelegate.xmlData.magDictionary) {
NSLog(@"%@", [ibb title]);
}
输出:
{
1 = "<Magazine: 0x6c8fe10>";
2 = "<Magazine: 0xf168d00>";
3 = "<Magazine: 0xf169f50>";
4 = "<Magazine: 0xf16b6d0>";
5 = "<Magazine: 0xf170490>";
6 = "<Magazine: 0xf1716c0>";
7 = "<Magazine: 0xf172a80>";
8 = "<Magazine: 0xf173f10>";
}
和SIGABRT上的NSLog(@ “%@”,[IBB标题]);杂志模型:@synthesize title,key,teaser,tags,items,progressBar;
在这种情况下@属性定义比`@ synthesize`更有趣,`retain`,`assign`,`copy`? – 2011-12-16 12:42:24