¡@

Home 

2014/10/15 ¤U¤È 10:11:09

iphone Programming Glossary: locationoftouch

UIPinchGestureRecognizer Scale view in different x and y directions

http://stackoverflow.com/questions/5349907/uipinchgesturerecognizer-scale-view-in-different-x-and-y-directions

height between gestureCenter and one of my finger float x gestureRecognizer locationInView self .x gestureRecognizer locationOfTouch 0 inView self .x if x 0 x 1 float y gestureRecognizer locationInView self .y gestureRecognizer locationOfTouch 0 inView.. locationOfTouch 0 inView self .x if x 0 x 1 float y gestureRecognizer locationInView self .y gestureRecognizer locationOfTouch 0 inView self .y if y 0 y 1 double size cause x and y is just the way from the middle to my finger float width x 2 if width.. height between gestureCenter and one of my finger float x gestureRecognizer locationInView self .x gestureRecognizer locationOfTouch 1 inView self .x if x 0 x 1 float y gestureRecognizer locationInView self .y gestureRecognizer locationOfTouch 1 inView..

Draw Line with gesture

http://stackoverflow.com/questions/6436990/draw-line-with-gesture

locations to some instance variables like `CGPoint location1 location2 ` if num_touches 1 location1 pinchRecognizer locationOfTouch 0 inView holderView if num_touches 2 location2 pinchRecognizer locationOfTouch 1 inView holderView tell the view to redraw... num_touches 1 location1 pinchRecognizer locationOfTouch 0 inView holderView if num_touches 2 location2 pinchRecognizer locationOfTouch 1 inView holderView tell the view to redraw. holderView setNeedsDisplay and then in the holder view drawRect routine void..