How to handle two types of straight napkin gestures

In my project, I created a UIView (red view) and gave a swipe gesture (right and left). His work is fine and then I saved the slide slide menu. Now I am facing a problem. If I scroll, the red image is fine. when i scroll to the right the red view doesn't go and the sidebar menu appears. How to solve this problem. Please help me.

var swipeRight = UISwipeGestureRecognizer(target: self, action: Selector("animations:"))
swipeRight.direction = UISwipeGestureRecognizerDirection.Right
viewSlide.addGestureRecognizer(swipeRight)
var left = UISwipeGestureRecognizer(target: self, action: Selector("animations:"))
left.direction = UISwipeGestureRecognizerDirection.Left
viewSlide.addGestureRecognizer(left)

      

If you don't understand my message, please ask again.

thank

+3
ios uigesturerecognizer uiswipegesturerecognizer


source to share


No one has answered this question yet

Check out similar questions:

21
Gesture issue: UISwipeGestureRecognizer + UISlider
2
Using UISwipeGestureRecognizer in UIScrollView cannot detect correct swipes, only detect left swipe
1
UISwipeGestureRecognizer custom action with UITableView
0
Handling tools outside of a controller in Swift
0
MWFSlideNavigationViewController not working with Sweep Recognizer generated from NIB file
0
change the transition of gesture recognizers
0
Single napkin added from storyboard to UIView not working
0
Gesture Swipe - Segue Storyboard
0
iOS Core Plot - saber gesture detection on a chart
0
Swipe the screen



All Articles
Loading...
X
Show
Funny
Dev
Pics