I have an NSArray of objects with properties such as firstName, lastName, clientID etc. and i would like to perform a search on the array based on a search keyword. This keyword must be checked against the first name and the last name properties and return a subset of the original array that contains only those objects whose first/last name contain the search term. Is there any efficient/fast way to do this?
I have an NSArray of objects with properties such as firstName, lastName, clientID etc.
Share
I think your looking for
-indexesOfObjectsPassingTest:This returns an index set of all the objects in the array with the first name of “Bob”.