narlei / NSPredicate-Search

A NSPredicate category to help with a dinamic Search (smart search)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NSPredicateSearch

A NSPredicate category to help with a dinamic Search (smart search)

Version License Platform

Running

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

 let predicate = NSPredicate(search: query, searchTerm: "name")
 self.array.filter(using: predicate!)
 self.array = NSMutableArray(array:self.arrayAll.filtered(using: predicate!))
NSPredicate *predicate = [NSPredicate predicateWithSearch:searchText searchTerm:@"searchTerms"];
self.arrayData = [[NSMutableArray alloc] initWithArray:[self.arrayAllData filteredArrayUsingPredicate:predicate]];

Requirements

iOS 8 +

Installation

NSPredicateSearch is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "NSPredicateSearch"

Author

Narlei A Moreira, contato@narlei.com

License

NSPredicateSearch is available under the MIT license. See the LICENSE file for more info.

Pay me a coffee:

paypal

About

A NSPredicate category to help with a dinamic Search (smart search)

License:MIT License


Languages

Language:Objective-C 78.1%Language:Ruby 14.0%Language:C 7.9%