(1) Effect
(2) Code
http://download.csdn.net/detail/wsb200514/8261001
(3) Summary
--First create different types of gesture recognition based on what you need, such as:
Uitapgesturerecognizeruiswipegesturerecognizeruipinchgesturerecognizeruirotategesturerecognizeruipangesturerecognizer
--Then use the Addgesturerecognizer method to add these gesture objects to the desired object, such as:
[Self.imgview Addgesturerecognizer:swipe];
--Of course, these gestures can use Addtarget to add some event detection, such as:
Uipinchgesturerecognizer *pinch=[[uipinchgesturerecognizer alloc]initwithtarget:self Action: @selector (PinchView:) ];
--Also, gesture recognition has some more commonly used proxy methods, such as whether the following methods allow multiple gestures to work simultaneously:
-(BOOL) Gesturerecognizer: (Uigesturerecognizer *) Gesturerecognizer Shouldrecognizesimultaneouslywithgesturerecognizer: (Uigesturerecognizer *) othergesturerecognizer{ return YES ;}
"iOS Dev-89" uigesturerecognizer gesture recognition complete rotation, zooming, and dragging effects