So my set up is as follows:
I subclassed uiimageview where I override the touchesMoved method so that the image can be dragged and then a viewcontroller is passed to the image so that when the image goes out of bounds of the scrollview, it gets added to the other scrollview within the viewcontroller. My problem, this cannot be done continuously, so the user would have to reselect the image on the other view. Is there a way I could make the image continually drag over the two scrollviews with this current set up? And thanks in advance!
Oh, and here's some code for the touchesMoved code so far:
-(void)touchesMoved

NSSet *)touches withEvent

UIEvent *)event
{
CGPoint touch1, touch2;
if([touches count] == 1)
{
CGPoint newTouch =
[[touches anyObject] locationInView:[self superview]];
CGPoint lastTouch = [[touches anyObject] previousLocationInView:[self superview]];
float xDifference = newTouch.x - lastTouch.x;
float yDifference = newTouch.y - lastTouch.y;
//imagecontainer is a uiview that holds uiimageviews and is contained in a uiscrollview
int bound = mycontroller.imagecontainer.bounds.size.width;
CGAffineTransform translate = CGAffineTransformMakeTranslation(xDifference,yDiff erence);
[self setTransform: CGAffineTransformConcat([self transform], translate)];
if(lastTouch.x < bound+100
&& lastTouch.x > bound-100 && scrollView == 1)
{
[self removeFromSuperview];
[mycontroller.mapcontainer addSubview:self];
self.center = C CGPointMake(mycontroller.mapcontainer.bounds.origi n.x,
lastTouch.y);
printf("X: %f, Y: %f", self.center.x, self.center.y);
self.moveOver = FALSE;
self.scrollView = 2;
}
}