¡@

Home 

2014/10/15 ¤U¤È 10:14:40

iphone Programming Glossary: swipegesture

Simultaneous gesture recognizers in Iphone SDK

http://stackoverflow.com/questions/2627934/simultaneous-gesture-recognizers-in-iphone-sdk

gestureRecognizer shouldReceiveTouch UITouch touch return YES And use it like this UISwipeGestureRecognizer swipeGestureLeft UISwipeGestureRecognizer alloc initWithTarget self action @selector handleSwipeGestureLeft self.view addGestureRecognizer.. alloc initWithTarget self action @selector handleSwipeGestureLeft self.view addGestureRecognizer swipeGestureLeft swipeGestureLeft.direction UISwipeGestureRecognizerDirectionLeft swipeGestureLeft release UISwipeGestureRecognizer swipeGesture.. alloc initWithTarget self action @selector handleSwipeGestureLeft self.view addGestureRecognizer swipeGestureLeft swipeGestureLeft.direction UISwipeGestureRecognizerDirectionLeft swipeGestureLeft release UISwipeGestureRecognizer swipeGesture UISwipeGestureRecognizer..

Views Navigation Using Swipe Gesture

http://stackoverflow.com/questions/6326816/views-navigation-using-swipe-gesture

question I found my answer. I am posting the code for your reference. Thanks in viewDidLoad UISwipeGestureRecognizer swipeGesture UISwipeGestureRecognizer alloc initWithTarget self action @selector swipedScreendown autorelease swipeGesture.numberOfTouchesRequired.. swipeGesture UISwipeGestureRecognizer alloc initWithTarget self action @selector swipedScreendown autorelease swipeGesture.numberOfTouchesRequired 1 swipeGesture.direction UISwipeGestureRecognizerDirectionDown m_pImageView addGestureRecognizer.. alloc initWithTarget self action @selector swipedScreendown autorelease swipeGesture.numberOfTouchesRequired 1 swipeGesture.direction UISwipeGestureRecognizerDirectionDown m_pImageView addGestureRecognizer swipeGesture Now void swipedScreendown..