Created
May 14, 2018 01:48
-
-
Save zhangkn/476d3e5f94f7ab873de3f5d955e09687 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//谓词技术的使用 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