IUPanGesture に次のハンドラーを使用しています。ただし、パンが終了すると、移動中の UIView が消えます。このコードに他に何か追加する必要がありますか?
- (void)pan:(UIPanGestureRecognizer *)gesture
{
if ((gesture.state == UIGestureRecognizerStateChanged) ||
(gesture.state == UIGestureRecognizerStateEnded)) {
CGPoint location = [gesture locationInView:[self superview]];
[self setCenter:location];
}
}