NSString *predicateFormat = [NSString stringWithFormat: @"mediaSubtype = %zd", PHAssetMediaSubtypeVideoHighFrameRate];
NSPredicate *predicate = [NSPredicate predicateWithFormat: predicateFormat];
PHFetchOptions *fetchOptions = [PHFetchOptions new];
fetchOptions.predicate = predicate;
PHFetchResult *userAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeSmartAlbumVideos options:fetchOptions];
这是我获取不包括慢动作视频的视频的代码。但是我遇到了以下错误。即使我这样做也不起作用,
PHFetchOptions *fetchOptions = [PHFetchOptions new];
fetchOptions.predicate = [NSPredicate predicateWithFormat:@"(mediaSubtype & %d) == 0", PHAssetMediaSubtypeVideoHighFrameRate];
有人请帮忙。提前致谢。
Unsupported predicate in fetch options: mediaSubtype == 131072