Here is how my project works, I have a UIScrollView
below it is a button addButton
, when clicked redirects you to the AGImagePickerController
Just an idea and not an exact solution. On Done button action, is it possible to save the image with name as some unique property of rep
. Probably [rep filename]
or [rep url]
can be used as image name while saving in place of @"oneSlotImages%u.png"
. And in loadAssets
read all the images stored in cache and compare its file name against the file names of images in selectedPhotos
and remove it from the selectedPhotos
array if it is not present in cache.
i think cause both of them have the same variable reference , check your variable reference and compare between both and let me know what u found .