2012-08-16 54 views

回答

0

UIView類有一個名爲-removeGestureRecognizer:的實例方法,它將UIGestureRecognizer作爲參數。所以,如果你有一個UIImageViewimgView變量)例如和UIPanGestureRecognizerpanRecognizer),您可以:

[imgView removeGestureRecognizer:panRecognizer];