Open Erikess opened 6 years ago
picker.assetsFilter = [ALAssetsFilter allPhotos];
can't find assetsFilter
// use image // let pridicate = NSPredicate(format: "mediaType == %d", PHAssetMediaType.image.rawValue) // use video let pridicate = NSPredicate(format: "mediaType == %d", PHAssetMediaType.video.rawValue) let fetchOptions = PHFetchOptions() fetchOptions.predicate = predicate picker.assetsFetchOptions = fetchOptions
if i only want photo,don't need video or audio,what's can i do?