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,

  1. retrieve array using dictionary key

    nsmutablearray *mutablearray = mutabledictionary[key];

  2. then delete object

    [mutablearray removeobject:stringobject];


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -