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.
Best Solution
You should set up fetch options, its has a property
predicate
, which can be used to filter videos. Below is an example of doing that.