Animate a view on key window while dragging another view with UILongPressGestureRecognizer
问题 I have added UILongPressGestureRecognizer to a view, and after long press event, the user can drag the view. I have added a view on the key window (need the custom view over the navigation and tab bar controllers, that is why need to add it on key window) using below code: // add the custom view on the key window. UIWindow *currentWindow = [UIApplication sharedApplication].keyWindow; [currentWindow addSubview:customView]; Now, when I am dragging the first view beyond the (screenSize/2) point,