I use the following to create an array of NSStrings:
I would like to eliminate those strings that begin with . by using something like:
I am able to find beginswith but I cant find anything that looks like doesnotbeginwith
Any suggestions please?
Code:
self.dataArray = [[NSFileManager alloc] contentsOfDirectoryAtPath:self.pathToHere error:&error];
I would like to eliminate those strings that begin with . by using something like:
Code:
NSPredicate *noDotPredicate = [NSPredicate predicateWithFormat:@"SELF doesnotbeginwith'.'"];
NSArray *doesNotBeginWithDot = [self.dataArray filteredArrayUsingPredicate:noDotPredicate];
I am able to find beginswith but I cant find anything that looks like doesnotbeginwith
Any suggestions please?
Last edited: