moja
moja

Reputation: 13

Search for a String in each Objects of NSmutableArray

I have NSmutableArray with 10,000 NSobjects, each NSobject has Name, Details and Location.

I want to Create a method which will search for A text in the Names, Details, and Locations of All Objects.

Upvotes: 0

Views: 136

Answers (1)

XCool
XCool

Reputation: 996

You'll want to use NSPredicates for this. It's fast and doesn't require much work. Check out this blog post for implementation details: http://www.cocoanetics.com/2010/03/filtering-fun-with-predicates/

Upvotes: 1

Related Questions