UIPanGestureRecognizer,

UIGestureRecognizer 有:

- (id)initWithTarget:(id)target action:(SEL)action; 

- (void)addTarget:(id)target action:(SEL)action; 

- (void)removeTarget:(id)target action:(SEL)action;

 UIGestureRecognizerState state;

- (CGPoint)locationInView:(UIView*)view;

 

UIGestureRecognizer 的孩子 有:

   UILongPressGestureRecognizer:

NSUInteger numberOfTapsRequired; 

    UIRotationGestureRecognizer

rotation

velocity

    UISwipeGestureRecognizer

 UISwipeGestureRecognizerDirection direction; 

    UIPanGestureRecognizer

- (CGPoint)translationInView:(UIView *)view; 

- (CGPoint)velocityInView:(UIView *)view; 

    UIPinchGestureRecognizer

 CGFloat velocity;

 CGFloat scale; 

    UITapGestureRecognizer

NSUInteger  numberOfTouchesRequired; 

 NSUInteger  numberOfTapsRequired; 

posted @ 2014-03-12 21:02  路在脚下,  阅读(323)  评论(0编辑  收藏  举报