我有以下字典,它有許多子字典。 如何使用NSPredicate
從父字典中刪除對象isChanged = 1
?使用NSPredicate刪除對象
{
"0_496447097042228" = {
cellHeight = 437;
isChanged = 1;
};
"100000019882803_193629104095337" = {
cellHeight = 145;
isChanged = 0;
};
"100002140902243_561833243831980" = {
cellHeight = 114;
isChanged = 1;
};
"100004324964792_129813607172804" = {
cellHeight = 112;
isChanged = 0;
};
"100004324964792_129818217172343" = {
cellHeight = 127;
isChanged = 0;
};
"100004324964792_129835247170640" = {
cellHeight = 127;
isChanged = 1;
};
}
您的問題發生什麼..? – Rajneesh071
我用@J夏皮羅的回答 – Shamsiddin
確定兄弟然後接受他的答案和+1,我的代碼也可以工作,如果你有這種格式的數據 – Rajneesh071