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.

[nsmutablearray removeobject]

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

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -