I am creating app to save images to Photo library from net. now i want to check every time before saving image to PhotoLibrary that image is already there or not?
i fetch the name of images stored in photo library but that name are different than original name so i don't know how to compare current image with already existing images! please help me!
ALAssetsLibrary *Library=[[ALAssetsLibrary alloc]init];
NSMutableArray *arr_ImagesUrl=[[NSMutableArray alloc]init];
[Library enumerateGroupsWithTypes:ALAssetsGroupSavedPhotos usingBlock:^(ALAssetsGroup *Group,BOOL *stop){
[Group enumerateAssetsUsingBlock:^(ALAsset *asset,NSUInteger index,BOOL *stop)
{
NSLog(@"%@",[[asset defaultRepresentation]filename]);
}];
} failureBlock:^(NSError *error){NSLog(@"%@",error.description);}];