dekatotoro / SlideMenuControllerSwift

iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.
MIT License
3.4k stars 754 forks source link

TableView disable scrolling when closing menu #153

Open JurajB opened 8 years ago

JurajB commented 8 years ago

Hi is it possible to disable scrolling of table view in left menu when i am closing it with pan gesture? Because when i have table view inside left menu it looks funny when i scroll left and up slightly.

Cheers

Pluto-Y commented 8 years ago

Do you want to disable the pan gesture?

JurajB commented 8 years ago

I want to keep pan gesture but i want to disable any movement in menu when it is "panning" away. I dont know how to do it without making scrolling inside menu miserable.

lainara6-zz commented 8 years ago

Do you mean this? SlideMenuOptions.simultaneousGestureRecognizers = false

termic commented 8 years ago

Have you also tried to keep a specific position in tableview when closing and reopening left menu?

ReFiRnE commented 8 years ago

if sender.state == UIGestureRecognizerState.Began { slideMenuController()?.removeLeftGestures() slideMenuController()?.removeRightGestures() print("You Start pan")

    }
    if sender.state == UIGestureRecognizerState.Ended {
        slideMenuController()?.addLeftGestures()
        slideMenuController()?.addRightGestures()
        print("You end pan")
    }

give your table view ui pan gesture, and the code from above do the trick.

nikunjazilen commented 6 years ago

@LayChannara Thanks for help. SlideMenuOptions.simultaneousGestureRecognizers = false. Its working for me to disable multiple scrolling while scroll the tableview