objective c - remove NSDictionary from NSArray in ios -
i have array
( { "can_remove" = 0; date = "april 12, 2014"; "date_created" = "12-04-2014 04:15:19"; id = 18; "is_connected" = 0; name = "j j"; status = first; time = "04:15 am"; "user_id" = 94; }, { "can_remove" = 0; date = "april 12, 2014"; "date_created" = "12-04-2014 02:55:02"; id = 16; "is_connected" = 0; name = abc; status = ""; time = "02:55 am"; "user_id" = 89; } ); mean array contains multiple dictionary object
how can delete dictionary array?
help me solve this....
thanks....
you can remove objects array if nsmutablearray. can create mutable array existing nsarray by,
nsmutablearray *mutablearr = [currentarray mutablecopy]; now nsmutablearray has methods removeobjectatindex: using can remove dictionary @ required index. refer documentation more methods , details.
hope helps!
Comments
Post a Comment