Open Erikess opened 6 years ago
picker.assetsFilter = [ALAssetsFilter allPhotos];
picker.assetsFilter doesn't exist
// 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? 可以限制只需要图片,不需要音频或视频吗。如果该可以,该怎样设置呢?