In iOS I am dragging a UIView between two parent UIViews. I am using UIPanGestureRecognizer to manage the dragging. While the dragging is still going on I switch the parent for the view being dragged by using:
- (IBAction)handlePanGesture:(UIPanGestureRecognizer *)sender {
...
[viewBeingDragged removeFromSuperview];
UIView* page2 = [self.view viewWithTag:pageTag];
[page2 addSubview:viewBeingDragged];
// Now scroll page 2 into view
[pageContainerScrollView setContentOffset:CGPointMake(xcoord, 0) animated:YES];
...
This seems to terminate the panning events. My finger however is still 'down'. At this point how can I detect my finger lifting up? I've tried a separate UITapGestureRecognizer which fires fine if panning is not occurring, but which does not fire if panning has started.
Any ideas?