i would like to get the filesize and the filename from all photos in my phone.
i am using @narek adonts AllAssets wrap to get a list of all photos. then i put them to a tableview because if the user will have a lot of photos it would take to long to load them to a scrollview i guess and a tableview is loading only cells that are visible so it should run faster.
until now everything works but i would like to get the filesize and the filename returned from all photos. i could not figure out how to extend nareks class to do that can someone please help me??
i have created a very bad workarroundto get the filesize. what i do is saving each image in a loop and check his size. i know its a terrible workarround so can someone help me get the filesize and filename from the allassets class?
I also need the functionality to select photo's from my iphone and upload them. The demo of ALAssets is not so clear to me. How did you manage to get all the file names ? Did you succeed in getting the file sizes ? And how do you get and upload them ?
In attachment a small demo application. I created a class "Asset" with relevant code I found here and there in the fora and made some small modifications (thanks to all who helped me with this !).