I did weeks of searching and finally found an example on Github that suited my needs. It was a trash drag example. I have now edited the example to my needs.
I now have only one problem. in my Scrollview I have 5 images, but they are all the same.
I want to know how to make each thumbnail a different image so when i drag an image from the Scrollview to the Imageview at the top it changes to that image i dragged form the scrollview.
Basically I want different images in my scrollview not all the same like I have.
I’m almost there and I got stuck on this one last thing I need to complete my battle.
As always any assistance would be much appreciated , below are some sample images and a link to my sample project.
Thank you.



This is what I did:
One. Rewrite the
- initWithFrame:method of theGalleryButtonclass like this:Then, rewrite the
- addAttachment:method of theGalleryScrollViewclass like this:Then, in
- [HegakaDragAndDropRecycleBinViewController viewDidLoad], specify the filenames of the images you want to use:Result: