That code really helped me out Brix, i can now move all of the dots that are on the screen, AND if i click in a blank space a new dot is created.
I used the method you used to discover which image needs to be moved (CGRectContainsPoint) which is looking for the lastTouch in the UIImageView Frame.
The only issue i am having with that is that when you move a dot too quickly it drops it because obviously the last touch managed to leave the frame of the UIImage..... not sure if this would act differently on the device?
To stop it from creating a new image every-time, and still have the ability to move all images i created a similar loop to you in Touches began.... If the user touches a UImage view it exits from the touches began method Else, create new image.... make sense? (if you want me to post the code i can)
SO! a couple of issues!
1. When i'm dragging a UIImageView, if the image runs over the top of another image, it will drop the image i am currently moving and pick up the other one! Don't have the foggiest how i might resolve this, but i'm thinking about it ... so i would be grateful for any ideas.
2. If you move your finger too fast it drops the image you are moving... i think this is because in touchesMoved we are moving UIImages if the coordinates of the current touch is within the frame of the image..and if you go to quickly it leaves the frame?? sound right?
Any help with those two points would be super helpful.
If i come up with anything i will post it here