ios - How do I remove only one of the many values assigned to a key in a Dictionary? -
i have dictionary array of potential values key. want able remove 1 of values (according selection made user), examples find deal dictionaries don't contain array.
thanks!
so have nsmutabledictionary values nsmutablearray objects items nsstring objects, right? if so,
retrieve array using dictionary key
nsmutablearray *mutablearray = mutabledictionary[key];
then delete object
[mutablearray removeobject:stringobject];
Comments
Post a Comment