baker icon indicating copy to clipboard operation
baker copied to clipboard

Putting the ShelfViewController's navigation controller inside another navigation controller

Open georgemckibbin opened this issue 13 years ago • 0 comments

I'm trying to use the shelf view controller as the center view controller and then have a view controller to the left that slides in like on facebook so I'm using PKRevealController. I've inserted the following code at the bottom of the template's didFinishLaunching....

UIViewController leftViewController = [[LeftMenuViewController alloc] init]; PKRevealController revealController = [PKRevealController revealControllerWithFrontViewController:self.rootNavigationController leftViewController:leftViewController options:nil]; self.window.rootViewController = revealController;

As you can see in the image below, there is a weird offset at the top (hard to see because it is white but it is the size of the status bar I believe) being created once I go to the BakerViewController (The Shelf View controller is fine). I can't figure out where to fix this! The navigation bar was also acting weird but I've managed to offset that by 20. Any help appreciated :D

ios simulator screen shot 17 06 2013 1 58 02 am

georgemckibbin avatar Jun 16 '13 17:06 georgemckibbin