I am trying to integrate the pkrevealcontroller sliding menu into an existing iOS project that has an existing storyboard with segues, etc. I extended the UINavigationViewController and linked my new class to the Nav Controller on the storyboard. In my application, I do the following:
MainNavViewController *frontViewController = [[MainNavViewController alloc] initWithRootViewController:[[myRootViewController alloc] init]]; UIViewController *rightViewController = [[menuViewController alloc] init]; self.revealController = [PKRevealController revealControllerWithFrontViewController:frontViewController rightViewController:rightViewController options:nil]; self.window.rootViewController = self.revealController;
When I launch the application, it successfully adds a sliding menu icon to the navigation bar, and the front panel opens as I want. But it does not use the title or snippets that I added to the storyboard. I'm even trying to do it.
ios iphone storyboard uinavigationcontroller
dixon_ian_va
source share