How to to filter by media subtype using NSPredicate with PHFetchOptions <p>How do I filter by media subtype using <code>NSPredicate</code> with <code>PHFetchOptions</code>? I'm trying to exclude slow mo (high frame rate) and time lapse videos. I keep getting strange results when I try to use the <code>predicate</code> field of <code>PHFetchOptions</code>. </p> <p>My phone has a bunch (120+) regular videos, and one slow mo video. When I run the example from <a href="https://developer.apple.com/library/prerelease/ios/documentation/Photos/Reference/PHFetchOptions_Class/index.html#//apple_ref/occ/instp/PHFetchOptions/predicate">Apple's docs</a>, I get the correct result back: 1 slow mo video. </p> <pre><code>PHFetchOptions *options = [PHFetchOptions new]; options.predicate = [NSPredicate predicateWithFormat:@"(mediaSubtype &amp; %d) != 0 || (mediaSubtype &amp; %d) != 0", PHAssetMediaSubtypeVideoTimelapse, PHAssetMediaSubtypeVideoHighFrameRate]; </code></pre> <p>But I'm trying to <em>exclude</em> slow mo, rather than select it. However if I negate the filter condition, I get zero results back: </p> <pre><code>options.predicate = [NSPredicate predicateWithFormat:@"(mediaSubtype &amp; %d) == 0", PHAssetMediaSubtypeVideoHighFrameRate]; &lt;PHFetchResult: 0x1702a6660&gt; count=0 </code></pre> <p>Confusingly, the Apple docs list the name of the field as <a href="https://developer.apple.com/library/prerelease/ios/documentation/Photos/Reference/PHAsset_Class/index.html#//apple_ref/occ/instp/PHAsset/mediaSubtypes"><code>mediaSubtypes</code></a> (with an "s"), while their sample predicate is filtering on <code>mediaSubtype</code> (without an "s"). </p> <p>Trying to filter on <code>mediaSubtypes</code> produces an error:</p> <pre><code>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Can't do bit operators on non-numbers' </code></pre> <p>Has anyone been able to make heads or tails of this predicate? </p>