using UIPanGestureRecognizer
we are moving the cells in the UICollectionView
When we started dragging UIGestureRecognizerStateBegan
is called. but when we still holds the dragging cell and presses the Home Button in ipad, the UIPanGestureRecognizer
not calling UIGestureRecognizerStateEnded
or UIGestureRecognizerStateFailed
or UIGestureRecognizerStateCancelled
, not even calling gesture method
- (void)handlePanGesture:(UIPanGestureRecognizer *)gestureRecognizer;
When i opened my app from background the cell is at the same place in the view but am not able to perform any actions on it. this is because of UIPanGestureRecognizer
not calling the gestureStates.
How to end my UIPanGestureRecognizer
when user presses the home button.