我NSMutableDictionary
看起来像这样:
category = (
{
description = (
{
id = 1;
name = Apple;
},
{
id = 5;
name = Pear;
},
{
id = 12;
name = Orange;
}
);
id = 2;
name = Fruits;
},
{
description = (
{
id = 4;
name = Milk;
},
{
id = 7;
name = Tea;
}
);
id = 5;
name = Drinks;
}
);
现在,当用户在我的应用程序中执行操作时,我会得到对象的 @"name"-value,例如“Apple”。我想从字典中删除该对象,但是如何使用
[myDictionary removeObjectForKey:]
方法?