我可以通过这样做来获取特定日期范围内的照片,但我如何进一步过滤它们的favorite
状态?
PHFetchOptions *fetchOptions = [PHFetchOptions new];
fetchOptions.predicate = [NSPredicate predicateWithFormat:@"(creationDate >= %@) && (creationDate <= %@)",startDateMinus24Hours,endDatePlus24Hours];
_assetsFetchResults = [PHAsset fetchAssetsWithOptions:fetchOptions];
我搜索了“PHFetchOptions 谓词收藏夹”,但找不到答案。如果您知道确切的答案或对谓词语法的引用,请告诉我。谢谢!