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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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