stefanoa / SASlideMenu

Library to create iOS sliding menu compatible with storyboards
568 stars 118 forks source link

SlideOut with Pan gesture from View blocks Table Selection Segue #3

Closed burakkilic closed 12 years ago

burakkilic commented 12 years ago

Hi;

I added

    UIPanGestureRecognizer* panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:menuViewController action:@selector(panItem:)];
    [panGesture setMaximumNumberOfTouches:2];
    [panGesture setDelegate:menuViewController];
    [self.view addGestureRecognizer:panGesture];

To the DarkViewController in order to slideOut from View, not only from Back button.

It is working good. But now, when I slideOut with Pan gesture, for the first time I tap in the menu, it is not firing the selection segue. But second time, it fires.

stefanoa commented 12 years ago

Hi burakkilic,

I should have fixed the issue. I use a clear view on top of the hierarchy of the selected view to intercept touch events that should trigger the slide in animation. When you simply panned out the content the shield was not added thus the touch events where processed by the menu button of the selected view controller that triggered a slide out that was already performed, the second touch was intercepted by the shield and the slide in was finally performed.

Now it should work correctly.

burakkilic commented 12 years ago

It is working now. Thank you.