Hi there I’ve messed around with a few different ways on implementing this but can’t seem to make anything work. What I’m looking to do is have a standard UIPageViewcontroller, with a toolbar at the top, then when a toolbarbutton on the top left is hit the PageView slides to the right (like Path or Facebook for example), revealing a tableView.
I’m able to get either one to work separately no problem, but am struggling to have these multiple view controllers work together with the appDelegate. I’ve primarily been using ViewDeck: https://github.com/Inferis/ViewDeck for the slide out implementation, but if there’s another way that would be easier to implement with a pageviewcontroller, I’m definitely open to it.
I don’t really have much for code to post since I’m still just trying to figure it out conceptually.
Thanks for any help!
After Edit:
To do what you want to do, I think it’s best to add the next controller as a child view controller of the page view controller (which is self.parentViewController in DataViewController).
This is all the code in the DataViewController. I added a couple of ivars that were necessary. In my test app, I connected the slideInController method to a double-tap gesture recognizer. Weird things would happen if you clicked or swiped while the DataView was partly on screen, so I added a BOOL property to the ModelController.h file (slidOff), and set it to FALSE in that class’s init method. I then added another condition to the if statements in the two page view data source methods to check that property. When slidOff is TRUE the swipe gesture recognizers won’t do anything. Here are those 2 methods in ModelController, as I modified them: