i’m trying to replace a value in my NSDictionnary but i cannot reach the part i’m looking for
I would like to use this method, or kind of…
i have a NSDictionnary and i want to replace this :
[[rootObj objectAtIndex:0] valueForKey:@”check”]
there is this method :
rootObj replaceObjectAtIndex:<#(NSUInteger)#> withObject:<#(id)#>
but i cannot acces to the valueForKey… how can i reach it ?
Thanks !
use this code for replace code
EDIT: Update answer according to user’s match
In the above example i want to replace the object of @”Sales Qty”
so i have create dictionary and set the object in those dictionary then just set the value for @”Sales Qty” key and replace the whole dictionary in array
If you have still problem then let me know