ios - Enumerating array of objects -
i have array of objects , objects in have same value(for example user's guid).
i want find object same guide , remove of rather first.
what best way it?
you can use nsmutablearray's removeobject method. notice object should implement isequal method appropriately.
as per description:
this method uses indexofobject: locate matches , removes them using removeobjectatindex:. thus, matches determined on basis of object’s response isequal: message. if array not contain anobject, method has no effect (although incur overhead of searching contents).
Comments
Post a Comment