aryaxt / iOS-Slide-Menu

iOS Slide Menu with ability to add both left and right menu, and built in gesture recognizer. Similar to Path and Facebook
Other
1.53k stars 359 forks source link

Problem with UIViewControllerTransitioningDelegate, UINavigationControllerDelegate #178

Open LucidityDesign opened 9 years ago

LucidityDesign commented 9 years ago

I have a UIViewController which has a custom segue animation. Therefore I use the UIViewControllerTransitioningDelegate and UINavigationControllerDelegate and implement this function func navigationController(navigationController: UINavigationController, animationControllerForOperation operation: UINavigationControllerOperation, fromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning?

When I set self.navigationController?.delegate = self the slideNavigationControllerShouldDisplayLeftMenu function is called 6 times, but the left menu button doesn't appear

LucidityDesign commented 9 years ago

I created a example showing the problem:

https://github.com/LucidityDesign/iOS-Slide-Menu/commit/5df587ab2d4ea9c17ea0d8f6bb1b51270134bb57