The following predicate should only retrieve all screenshots that work very well.
options.predicate = [NSPredicate predicateWithFormat:@"(mediaSubtype & %d) != 0", PHAssetMediaSubtypePhotoScreenshot];
However, if I try to exclude screenshots only using the follwing predicate, all images are excluded
options.predicate = [NSPredicate predicateWithFormat:@"(mediaSubtype & %d) = 0", PHAssetMediaSubtypePhotoScreenshot];
All the attempts that I am trying to make are to exclude fingerprints from the resource extraction screen.
Is this a known bug or am I missing something?
source share