¡@

Home 

2014/10/15 ¤U¤È 10:12:27

iphone Programming Glossary: pangesture

UISwipeGestureRecognizer Swipe length

http://stackoverflow.com/questions/4828833/uiswipegesturerecognizer-swipe-length

to use pan gesture you would save the starting point of the pan and if the pan has ended calculate the distance. void panGesture UIPanGestureRecognizer sender if sender.state UIGestureRecognizerStateBegan startLocation sender locationInView self.view..

How to draw graphics in iphone gesture?

http://stackoverflow.com/questions/6173685/how-to-draw-graphics-in-iphone-gesture

CGPoint location PanIndicator panIndicator @implementation MyView id init if self super init UIPanGestureRecognizer panGesture UIPanGestureRecognizer alloc initWithTarget self action @selector panAction panGesture setMaximumNumberOfTouches 1 panGesture.. init UIPanGestureRecognizer panGesture UIPanGestureRecognizer alloc initWithTarget self action @selector panAction panGesture setMaximumNumberOfTouches 1 panGesture setDelegate self self addGestureRecognizer panGesture panGesture release panIndicator.. UIPanGestureRecognizer alloc initWithTarget self action @selector panAction panGesture setMaximumNumberOfTouches 1 panGesture setDelegate self self addGestureRecognizer panGesture panGesture release panIndicator PanIndicator alloc init self addSubview..