【发布时间】:2012-11-24 12:51:01
【问题描述】:
我有以下词典,其中包含许多子词典。
如何使用NSPredicate从父字典中删除isChanged = 1的对象?
{
"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;
};
}
【问题讨论】:
-
你的问题是怎么回事..?
-
好的兄弟,然后接受他的回答和+1,如果你有这种格式的数据,我的代码也可以工作
-
@Rajneesh071 下面我添加了我的解决方案作为答案
-
干得好......你的答案是两个答案的结合......很好......
标签: iphone objective-c ios nsdictionary nspredicate