Dragging a uiimageview over two scrolluiviews
So I have an app that has a hierarchy of a uiviewcontroller that has two uiscrollviews. Each one of these scrollviews has a view in itself, one of which contains an array of MapImages(uiimageviews). I essentially want the user to drag one image (the left scrollview/view combo) over to the other set of scrollview/container. Since I subclassed uiimageview for my images, the dragging motion is taken care of in the touchesmethod for each of these images. My problem, when an image is dragged from one view to another(which I want to check with the x coordinate), I cannot notify the viewcontroller to switch the image itself to the other view. I've been trying to find any function that the uiviewcontroller calls on every tick so I can check for the array of images if any of them have crossed the line to get switched over.
Unless there's another way, this is all that I can think of.
Anyway.. to say in short term, how in the world do you move a uiimageview from one scrollview to the next when bringtofront, etc. doesn't work? Apparently the scrollview that has the images is a layer behind the other scrollview but no matter which way I add them to the viewcontroller, this still happens.
Thanks in advance because my brain is fried from this mess @_@
|