通过UIImagePickerController选取的图片名称信息

 - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { 

    NSURL *imageURL = [info valueForKey:UIImagePickerControllerReferenceURL];

    ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset)    {

        ALAssetRepresentation *representation = [myasset defaultRepresentation];

        weakSelf.imageName = [representation filename];

        NSLog(@"imageName : %@",weakSelf.imageName);

    };

    ALAssetsLibrary *assetslibrary = [[ALAssetsLibrary alloc] init];

    [assetslibrary assetForURL:imageURL resultBlock:resultblock failureBlock:nil];
} 
原文地址:https://www.cnblogs.com/Milo-CTO/p/6283376.html