ios - Mutating NSDictionary inside NSArray -


is there quick way of mutating nsarray of nsdictionaries? have big nsarray , want update value particular key inside nsdictionary. there quick way of mutating inner dictionaries update them.

assuming original array contains immutable dictionaries 1 way create new array mutable copies of of original dictionaries.

nsmutablearray *newarray = [nsmutablearray arraywithcapacity:oldarray.count]; (nsdictionary *dict in oldarray) {     [newarray addobject:[dict mutablecopy]]; } 

now of work on newarray.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -