Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get file list with NSPredicate
- NSString *bundlePath = [[NSBundle mainBundle] bundlePath];
- NSFileManager *fm = [NSFileManager defaultManager];
- NSArray *dirContents = [fm contentsOfDirectoryAtPath:bundlePath error:nil];
- NSPredicate *fltr = [NSPredicate predicateWithFormat:@"self like '*.jpeg'"];
- NSArray *fileNames = [[dirContents filteredArrayUsingPredicate:fltr] retain];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement