Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
//谓词技术的使用 evaluateWithObject
static BOOL knmathFile(NSString* file, NSString* reg) {
if (!reg)
return YES;
NSPredicate* predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",reg];
return [predicate evaluateWithObject:file];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment