在尝试尝试100次尝试后,即刻诉诸于SO。从嵌套的NSDictionary中获取值
我使用字典这个输出HTML解析器的libxml2
{
nodeChildArray = (
{
nodeAttributeArray = (
{
attributeName = class;
nodeContent = imgContainer;
}
);
nodeChildArray = (
{
nodeAttributeArray = (
{
attributeName = src;
nodeContent = "/~/media/Images/Image 2.ashx";
},
{
attributeName = alt;
nodeContent = "Image 2";
},
{
attributeName = width;
nodeContent = 60;
},
{
attributeName = height;
nodeContent = 112;
}
);
nodeName = img;
}
);
nodeName = div;
}
);
nodeName = td;
},
我试图让nodeContent是/〜/媒体/图片/图像2.ashx的...
任何想法我的迭代应该如何?
我也想知道如何在这种情况下使用NSDictionary valueForKeyPath的方法...如果有可能? – xoail 2011-03-10 03:12:45