Filtering Array content with Predicate

suggest change

Using filterUsingPredicate: This Evaluates a given predicate against the array’s content and return objects that match.

Example:

NSMutableArray *array = [NSMutableArray array];
[array setArray:@[@"iOS",@"macOS",@"tvOS"]];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF beginswith[c] 'i'"];
NSArray *resultArray = [array filteredArrayUsingPredicate:predicate];
NSLog(@"%@",resultArray);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


NSMutableArray:
*Filtering Array content with Predicate

Table Of Contents