问题
If pictures are loaded into an app from a album, how is it possible to get the filesize in MB and the date of that picture displayed on a app like on the screenshot below?

I know you can retrieve the filesize via a NSLog using the following code, but how can I get this into a string and also the date of that picture?
NSLog(@"size of image in KB: %i",[UIImagePNGRepresentation(UIImage) length]);
回答1:
Use CoreGraphics
size_t imageSize = CGImageGetBytesPerRow(image.CGImage) * CGImageGetHeight(image.CGImage);
iOS get UIImage memory size
来源:https://stackoverflow.com/questions/27453713/how-to-get-date-and-filesize-from-a-picture