I am trying to implement JASidePanels example2 using a storyboard. https://github.com/gotosleep/JASidePanels#example-2-storyboards
-(void)awakeFromNib { [self setLeftPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"leftViewController"]]; [self setCenterPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"centerViewController"]]; [self setLeftPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"rightViewController"]]; }
If I added the above code to CenterViewController.m, which was the same as MySidePanelController.m in example2, the application crashed, as shown below.

-(void)awakeFromNib { // [self setLeftPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"leftViewController"]]; // [self setCenterPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"centerViewController"]]; // [self setLeftPanel:[self.storyboard instantiateViewControllerWithIdentifier:@"rightViewController"]]; }
If I commented as shown above, the application works as shown below. 
I am new to iOS. Could you tell me what is wrong?
My environment.
- Xcode: version 4.6.2
- IOS SDK: 6.1
- Simulator: iPhone 6.1
source share