infinitered / ProMotion-menu

RubyMotion gem allowing you to easily setup a facebook or Path style hidden slide menu easily with the ProMotion gem.
74 stars 29 forks source link

Disabling Gesture Recognition #12

Closed cheenu closed 11 years ago

cheenu commented 11 years ago

Disabling gesture recognition doesn't seem to work.

Am I missing something obvious? :)

App with commands to disable gesture recognition

https://github.com/cheenu/promotion_slide_menu_disable_gesture_recognition

cheenu commented 11 years ago

@jamonholmgren would be great if you also could take out a couple of minutes to check this out if possible. thanks! :)

jamonholmgren commented 11 years ago

@cheenu Does this Stackoverflow answer help?

cheenu commented 11 years ago

Sorry for the late reply - I managed to fix it by doing

app_delegate.slide_menu.removePanGestureRecognizerFromFrontView

which disables the gesture recognizer and then doing

App.delegate.slide_menu.addPanGestureRecognizerToFrontView

in all the controllers that I wanted the slide menu to work. Worked perfect.

(Not sure why setting recognizesPanningOnFrontView to false doesn't disable gesture recognizer though)

jamonholmgren commented 11 years ago

Good to know!

macfanatic commented 11 years ago

@cheenu - thanks for letting us know, updated the README to include this information in https://github.com/macfanatic/promotion_slide_menu/commit/ef84ef53c3135234e09e2fc8d99665c1e8f197ca.

cheenu commented 11 years ago

No problem, thanks for creating this gem :+1:

devth commented 10 years ago

Looks like addPanGestureRecognizerToFrontView and removePanGestureRecognizerFromFrontView no longer exist on PKRevealController. Not seeing an equivalent at https://github.com/pkluz/PKRevealController/blob/master/Source/PKRevealController/PKRevealController.h

Is there a new way to do it?

cheenu commented 10 years ago

Set recognizesPanningOnFrontView to true or false. The example that I gave my original post works now for some reason.

devth commented 10 years ago

Thanks @cheenu