PHFetchResult * reuslt = [PHAsset fetchAssetsWithOptions:nil];
[reuslt enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
PHAsset * imageT = (PHAsset *)obj;
if (imageT.mediaType == PHAssetMediaTypeImage ) {
NSLog(@"照片名%@", [imageT valueForKey:@"filename"]);
}
NSLog(@"======%@",obj);
}];
如上程式碼所示,那個valueForKey後面的key的字串我再哪裡能查到,我再文檔裡看看沒有這個filename的key啊