My app can take image from photo library. For the first time app open, it can take latest image.
But after I open app, go to background, open photo library and modify image, and come back to app, when user choose photo, it is not the latest image.
When I log image url in assets, it show the same one before and after modify image. Is it supposed to be same? Or different after image is modified?
Asset = ALAsset - Type:Photo, URLs:assets-library://asset/asset.PNG?id=4E226E36-2D9C-449C-92AE-5036938603A9&ext=PNG
- (void) loadAssetsForGroup: (ALAssetsGroup*) group withCompletionHandler: (void (^)(NSArray*)) completionHandler {
__strong NSMutableArray* assets = [NSMutableArray array];
[group enumerateAssetsUsingBlock: ^(ALAsset* result, NSUInteger index, BOOL* stop) {
if (!result) {
completionHandler(assets);
return;
}
[assets addObject: result];
}];
}