In Predicate Programming Guide

In Predicate Programming Guide, please refer https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/Predicates/Articles/pUsing.html.

Here,

NSPredicate *sPredicate = [NSPredicate predicateWithFormat:@"SELF contains[c] 'e'"];

[array filterUsingPredicate:sPredicate];

// array now contains { @"Nick", @"Ben", @"Melissa" }.

The output is wrong here.

It must be // array now contains { @"Ben", @"Melissa" }

Hi Chirag,


Well spotted, but it's very unlikely that the right person to correct that error will be notified of it as a result of your post here. To be heard by Apple, you need to file a bug-report: https://bugreport.apple.com/


-Max

In Predicate Programming Guide
 
 
Q