__block NSString *picName = @" " ;
//获取图片名
ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset)
{
ALAssetRepresentation *representation = [myasset defaultRepresentation];
__block NSString *fileName = [representation filename];
picName = fileName;
NSLog(@"fileName 。。。。。: %@",picName);
[self saveImageToDocument : loadimage imageName:picName ];
};
ALAssetsLibrary * assetslibrary = [[ALAssetsLibrary alloc] init];
[assetslibrary assetForURL:imageURL
resultBlock:resultblock
failureBlock:nil];
//获取图片名
ALAssetsLibraryAssetForURLResultBlock resultblock = ^(ALAsset *myasset)
{
ALAssetRepresentation *representation = [myasset defaultRepresentation];
__block NSString *fileName = [representation filename];
picName = fileName;
NSLog(@"fileName 。。。。。: %@",picName);
[self saveImageToDocument : loadimage imageName:picName ];
};
ALAssetsLibrary * assetslibrary = [[ALAssetsLibrary alloc] init];
[assetslibrary assetForURL:imageURL
resultBlock:resultblock
failureBlock:nil];