Quantcast
Channel: Infragistics Community
Viewing all articles
Browse latest Browse all 2374

iOS - Objective-C - Filtering a NSArray using NSPredicate

$
0
0
In this post, i'll walk you through how to filter an NSArray using NSPredicates. The first thing you'll need to decide is if you're filtering a number or a string. For strings, you can use any of the following filters: (NOTE: must be all caps) BEGINSWITH ENDSWITH LIKE MATCHES CONTAINS For numbers, you can use: != > >= < == Now that you know what kind of data you're going to filter on, we can build our predicate. Lets first assume we're filtering an array of strings: NSArray...(read more)

Viewing all articles
Browse latest Browse all 2374

Trending Articles