honcheng / PaperFoldMenuController

A navigation menu on the left of the screen using on PaperFold
Other
436 stars 90 forks source link

showMenu:animated doesn't work with presentViewController:animated:completion: #11

Open pedro380085 opened 11 years ago

pedro380085 commented 11 years ago

I created a PaperFoldMenuController and setted some viewControllers to it, let's say viewControllerOne and viewControllerTwo. Everything loads perfectly up till this point and if the showMenu:animated is called, it shows the menu without glitches, but when viewControllerOne present a third view controller, say viewControllerThree, using the presentViewController:animated:completion: method, showMenu:animated stops to work.

According to Apple docs, presentViewController:animated:completion: on the iPhone goes full screen, but why can't the PaperFoldMenuController slide itself into the left?

pedro380085 commented 11 years ago

The behavior described above is right, after all. The view associated with the PaperFoldMenuController is the one below the presentViewController, so when you dismiss the viewController, you can see that menu is not displayed.