Fetch only photos of type PHAssetMediaTypeImage form asset collection type PHAssetCollectionTypeSmartAlbum
问题 I am using the Photos framework to fetch album list in iOS8. I am able to do it using PHFetchResult *smartAlbums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeAlbumRegular options:nil]; This gives me a list of all smart albums including videos. How can I filter out videos from this list. I need only images. Help would be appreciated. Thanks. 回答1: You should set up fetch options, its has a property predicate , which can be