JASidepanels not showing navigationbutton
ios, iphone, jasidepanels, objective-c, storyboard
Solution
Embed your center UIViewController in storyBoard into UINavigationController, for example:
- Select UIViewController on StoryBoard
- Select Xcode menu item Editor - Embed In - Navigation Controller
- Select new UINavigationController's Identity Inspector (Alt-Command-3)
- Give unique name to StoryBoard ID e.g. myCenterController
Use that name to create center panel
[self setCenterPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"myCenterController"]];
So you don't actually set viewController as centerPanel, but a navigation controller containing your viewController.
Problem
I am trying to implement the `JASidePanels` in my project using `storyboard`. You can see my storyboard over here. The problem is that I don't see the button in the navigationbar to reveal the leftpanel. In my RootViewController I've this in code. ``` -(void) awakeFromNib { [self setLeftPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"leftViewController"]]; [self setCenterPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"centerViewController"]]; [self setRightPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"rightViewController"]]; self.shouldResizeLeftPanel = YES; self.shouldResizeRightPanel = YES; [self setRightFixedWidth:300.0f]; [self setLeftFixedWidth:300.0f]; } ``` I've followed the steps that they say on the github page. Also when I try to embed the `RootviewController` inside a `navigationController`. It is showing the navigationBar but not the `barbutton item`. Any help on this ?