I can fetch photos in a certain date range by doing this, but how can I further filter by their favorite
statuses?
PHFetchOptions *fetchOptions = [PHFetchOptions new];
fetchOptions.predicate = [NSPredicate predicateWithFormat:@"(creationDate >= %@) && (creationDate <= %@)",startDateMinus24Hours,endDatePlus24Hours];
_assetsFetchResults = [PHAsset fetchAssetsWithOptions:fetchOptions];
I googled for "PHFetchOptions predicate favorites", but couldn't find an answer. If you know the exact answer, or a reference to predicate syntax, please let me know. Thanks!
I figured it out.