I am creating an IOS app which can hide the photos the user been selected. I am able to do that, but the problem is, if the user selects again the already been selected photo, how do i need to check they are SAME ,i looked into the metadata info of the photo, but that can match to some other photo having same meta info, currently i have only idea to generate the checksum based on whole photo data with bytes, which i think may cause memory issue and also degrades performance.so any expertise help will be needful.thanks in advance.
__block NSMutableDictionary *imageMetadata = nil;
ALAssetsGroupEnumerationResultsBlock assetsEnumerationBlock = ^(ALAsset *result, NSUInteger index, BOOL *stop) {
if (result) {
[self.assets addObject:result];
NSDictionary *metadata = result.defaultRepresentation.metadata;
imageMetadata = [[NSMutableDictionary alloc] initWithDictionary:metadata];
NSLog(@"%@",imageMetadata.description);
}
};