在嘗試嘗試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